FWIW, pdfextract and pdfmerge don't work if the or one of the PDFs are encrypted. Because they don't look at it, the resulting PDF(s) become unreadable.

Thomas

Am 20.12.2010 16:15, schrieb Thomas Freitag:
Hi all!

How I promised long time ago, here now a patch for the poppler writing routines and some new helper function, together with two small sample programs using them.

In merging the writer routines I encountered, that some of the problems I found are solved in the meantime. So, where they are solved, I left the code as it is, but manually merging could always cause new problems.

The main changes beside solving some smaller problems are that I make the most writer routines static, and that I add a new parameter numoffset. The reason for this is the small sample program pdfmerge, which merges several PDF to one bigger PDF, so there I have no PDFDoc object for the resulting PDF, and I have to change the num values of each single PDF.

The other small sample program I add is to do the other way round: Extract one or more pages from a multi page PDF to several one page PDFs.

I'm not an expert in configure, so I just attach the single main cc's. Building the programs is simular topdftotext, they need parseargs and the poppler library. So I would appreciate any help on this.

I think the patch together with the samples could make it easier to file samples for bugs, i.e. extracting only the page or pages which causes a regression, or merge several sample PDFs which causing regressions.

What are You thinking about it? Helpful or not?

Best regards,
Thomas

Am 28.10.2010 15:49, schrieb Jennings Jay:

Hi poppler folks,

I am looking for a C++ example that creates PDF files using the poppler library.  I have poppler compiled (Windows XP / Visual Studio 2008) and I have working examples that *read* a PDF, but I don’t see anything in the poppler codebase, documentation, or mailing-list archives to show how to *create* a PDF.  My real goal is to create a Geospatial PDF, but any kind of simple PDF creation example would probably help a lot.   Thanks for the pointer.

 

.........................................................

Jay Jennings

Senior Software Engineer

www.geoeye.com

703.480.4614  

[email protected]

21700 Atlantic Blvd. Dulles, VA 20166  

cid:image001.png@01C9DE0A.57705A70

Trusted Imagery Experts

 

 

_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler



_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to