I am developing a plugin, which needs to get an attached file from an opened pdf. The attached file is encrypted therefore i just want to save the attched file in a temporary location.
I am not able to retrieve my attached file from the pdf. I tried using ASFileAttachmentGetPDFileAttachment() method, but it didn't executed.
Can someone help me to retrieve an attached file from a pdf??
Thanks in advance.
What i meant is that on running the following code the compiler shows message "There is no source code avaliable for the current location" on executing the function ASFileAttachmentGetPDFileAttachment()
ASAtom pathType = ASAtomFromString("Cstring");
ASFileSys fileSys = ASGetDefaultFileSys();
ASPathName pathName = ASFileSysCreatePathName(fileSys, pathType, "22.pdf", NULL);
ASBool b = ASFileAttachmentGetPDFileAttachment(fileSys, pathName, &attachment);
Here" 22.pdf" is an attached pdf file.
I am using F10 which is a step over and the compiler is showing the same message. I am unable to use this function. Is there any other API to save the content of an attached file into another file?
On running the code without any break points, the complier does not throw any error. I think it simply returns false on calling the function ASFileAttachmentGetPDFileAttachment(). Am I sending wrong parameters in this function?? Can you please giude me in this.
If you need code-level help, you should open a formal support incident with our Developer Support folks.
Reply-To: "email@example.com<mailto:firstname.lastname@example.org>" <email@example.com<mailto:firstname.lastname@example.org>>
Date: Tue, 24 Jan 2012 23:13:52 -0800
Subject: Re: How to get file attachments from a pdf. How to get file attachments from a pdf.
Re: How to get file attachments from a pdf.
Europe, Middle East and Africa