You need to sign in to do that
Don't have an account?
GoForceGo
File I/O, pdf handling
Does Apex support any file I/O
Here is what I need to be able to do:
I have standard pdf document which has an underlying XML schema.
I need to fill out some information in this pdf (programatically) and e-mail it a contact.
Anyway to do it in Apex?
I know there is an xmlStreamReader and xmlStreamWriter class, but it is not apparent how I would use them to do file i/o to a pdf document (from which I can extract an XML)
Here is what I need to be able to do:
I have standard pdf document which has an underlying XML schema.
I need to fill out some information in this pdf (programatically) and e-mail it a contact.
Anyway to do it in Apex?
I know there is an xmlStreamReader and xmlStreamWriter class, but it is not apparent how I would use them to do file i/o to a pdf document (from which I can extract an XML)
Why do you need file i/o to do this? If you're just emailing information, can't you inline it in the email?
I do have to populate some information in this pdf form - e-mailing the information and asking the reciever of the e-mail to type it is not desirable for my use case!
How does one take the output of an XML stream writer and put in a "document" object.
Then I could get the user to just click on the document and download it their hard drive.
The document object has the file content in a field called "Body" which is base64Binary - seems like document object was designed for Web Services...
Can I somehow convert XML document to base64Binary from within Apex?
My App is native to force.com - I don't want to have to deploy any other clients/servers.