Page 1 of 1

Attachments in PDF file

Posted: Mon Jan 14, 2013 10:03 am
by Sage Software
Is it possible with PDF-XChange to add another file as attachment to the created pdf file (for instance a XML file), and is it possible to extract an attached file from a pdf file again?

Re: Attachments in PDF file

Posted: Mon Jan 14, 2013 12:13 pm
by Tracker Supp-Stefan
Hello Sage Software,

I do not think it's possible to do that at a PDF creation time with the Drivers API, but you can add a file annotation later to an existing PDF document using our Viewer SDK and some JS code.

Best,
Stefan

Re: Attachments in PDF file

Posted: Thu Aug 27, 2015 2:41 pm
by edvschu
Hello,

i have the same requirement. Is there now another way to implement this, except in JS?

Only implement by JS, have somebody sample code?

Best Regards,
edvschu

Re: Attachments in PDF file

Posted: Thu Aug 27, 2015 3:03 pm
by Tracker Supp-Stefan
Hello edvschu,

We are working on V5 of the PDF Tools SDK, and it will use the same core libraries as the Editor SDK (which is already available). I presume that using that new SDK (planned for release in about two weeks) you will be able to create attachment annotations, however for the moment the only option would be to try JS.

I do not have sample code but you can check this reference file.

Regards,
Stefan

Re: Attachments in PDF file

Posted: Thu Aug 27, 2015 3:15 pm
by edvschu
Stefan, Thanks for Information and the link.

Re: Attachments in PDF file

Posted: Thu Aug 27, 2015 3:31 pm
by Tracker Supp-Stefan
:D

Re: Attachments in PDF file

Posted: Fri Aug 28, 2015 1:10 pm
by edvschu
Hello,

i must produce PDF/A3 documents with attachment. For now i create the pdf with PDF-XChange Drivers. After that i attach file with JS.

I have 2 Questions to V5 of the PDF Tools SDK:

(1) Will it be possible associated attachment with the document level of a PDF/A3? In PDF/A3 this is expressed with
the /AF (associated files) key in the document catalog.

(2) Will it be possible define relationship of attachment and document? In PDF/A-3 this is expressed with the /AFRelationship key.

Best regards,
edvschu

Re: Attachments in PDF file

Posted: Wed Sep 16, 2015 6:54 am
by edvschu
Hello,

can someone help with my questions?

Best regards,
edvschu

Re: Attachments in PDF file

Posted: Wed Sep 16, 2015 4:25 pm
by Ivan - Tracker Software
Using Core API SDK or Editor SDK you can attach file to the document.
There are no special function to work with relationships, but that can easily be done modifying document catalog dictionary.

Re: Attachments in PDF file

Posted: Thu Sep 17, 2015 7:04 am
by edvschu
I have downloaded the Core API SDK. Will be there open a new forum?

There are only a sample in c++? Will be there give samples in e.g. VB.NET in future?

Re: Attachments in PDF file

Posted: Thu Sep 17, 2015 10:30 am
by Tracker Supp-Stefan
Hello edvschu,

I will speak with the people creating the subforums so that we make one for the Core API.
For the moment you can post questions related to it in the Tools SDK forum (as the two have similarities).

As for the samples - it is only the C++ one for now, but it should still give you an idea of what can be done with it.

Regards,
Stefan