Print Page | Close Window

File Attachments

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=601
Printed Date: 18 May 24 at 7:28PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: File Attachments
Posted By: PGU_78
Subject: File Attachments
Date Posted: 11 Jan 07 at 5:02AM
Hello everybody!
Is it possible to have an access to File Attachments in PDF?

-------------
Don't be afraid. Be very afraid (The Fly, 1986)



Replies:
Posted By: Ingo
Date Posted: 11 Jan 07 at 6:10AM
Hi Dimitry!

You can attach files (any type) with QuickPDF. Take EmbedFile.
You can use this attached files (hope i'm right) only with the Acrobat Reader (Foxit doesn't want it).

Here's a delphi code snippet:

// . . .

   QP := TiSEDQuickPDF.Create;
   try     // hier weiter
      QP.UnlockKey('MyUnlockKey');
      QP.LoadFromFile(Form1.Edit1.Text);
      QP.Unencrypt;
      fname := ExtractFileName(fstring);
      fx := FileGetAttr(Trim(Edit1.Text));
      FileSetAttr(Trim(Edit1.Text), faArchive);
      QP.EmbedFile(ExtractFileName(fname), fstring,' ');
      QP.SetCustomInformation('EMBED', fname);
      QP.SaveToFile(Form1.Edit1.Text);

// . . .

Best regards,
Ingo




Posted By: PGU_78
Date Posted: 11 Jan 07 at 6:18PM
Thank you Ingo.

EmbedFile function embeds a file into the PDF document.
However, how do I extract a file from the PDF document?

-------------
Don't be afraid. Be very afraid (The Fly, 1986)


Posted By: Ingo
Date Posted: 12 Jan 07 at 1:39AM
Hi!
There's no function  for this in QuickPDF.
The enduser can open and save the attached file when opening the pdf-document with the adobe reader.
A real remove isn't possible ... It's good to have a copy without attached file ;-)

Best regards,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk