Attachments in PDF file

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Sage Software
User
Posts: 13
Joined: Thu Mar 16, 2006 9:13 am

Attachments in PDF file

Post 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?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Attachments in PDF file

Post 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
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: Attachments in PDF file

Post 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
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Attachments in PDF file

Post 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
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: Attachments in PDF file

Post by edvschu »

Stefan, Thanks for Information and the link.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Attachments in PDF file

Post by Tracker Supp-Stefan »

:D
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: Attachments in PDF file

Post 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
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: Attachments in PDF file

Post by edvschu »

Hello,

can someone help with my questions?

Best regards,
edvschu
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Attachments in PDF file

Post 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.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
edvschu
User
Posts: 127
Joined: Fri Jun 25, 2010 6:54 am

Re: Attachments in PDF file

Post 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?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Attachments in PDF file

Post 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
Post Reply