PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

How to edit DocumentInfo w/o resaving the hole document?
http://forum.pdfsharp.de/viewtopic.php?f=2&t=905
Page 1 of 1

Author:  KMurat [ Mon Oct 12, 2009 2:58 pm ]
Post subject:  How to edit DocumentInfo w/o resaving the hole document?

Hi there,

I am new in this forum and just tomorrow began to discover PDFSharp. Can anybody tell me if the library can edit Document's Info (Creator, Author, etc...) without resaving the hole document. I have the big pdf docs (> 35 MB) and it takes too much time to process those huge files.

Thanks for the answers in advance


--
Best Regards,
Murat

Author:  Thomas Hoevel [ Mon Oct 12, 2009 3:48 pm ]
Post subject:  Re: How to edit DocumentInfo w/o resaving the hole document?

Hi!

Read-Edit-Rewrite - that's how PDFsharp works.

AFAIK this information is embedded in PDF with the space it requires.
If you make these strings longer, the PDF file must be re-arranged - and that'll take time with any tool.

Author:  KMurat [ Tue Oct 13, 2009 2:43 pm ]
Post subject:  Re: How to edit DocumentInfo w/o resaving the hole document?

Thanks for the answer. It's pity that this capability is not supported. We are writing the PDF management tool which will extensively use PDF's Document Information Dictionary so this feature is highly important for me.

Just imagine that we need to update the PDF Keywords for a large file, say 70Mb. So we need to read to buffer, update the info, and rewrite the original file with this buffer. I guess for 70 mb file this will takes to much time. And the worse things is in case of any failure during saving a customer might loss the file. If we store a file original copy during this operation this also increase our processing time...

BTW does anybody knows what separators used to split keywords in PDF:Keywords? I haven't found any mention about this in PDF Reference 1.6 by Adobe and faced with the files with keywords separated by comma and spaces as well...

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/