libharu

Combining two PDF files in C++

白昼怎懂夜的黑 提交于 2019-12-09 22:43:36
问题 In C++ I'm generating a PDF report with libHaru. I'm looking for someway to append two pages from an existing PDF file to the end of my report. Is there any free way to do that? Thanks. 回答1: Try PoDoFo http://podofo.sourceforge.net/ You should be able to open both of the PDFs as PDFMemDocuments using PDFMemDocument.Load( filename ) . Then, acquire references to the two pages you want to copy and add to the end of the document using InsertPages , or optionally, remove all but the last two

Combining two PDF files in C++

只谈情不闲聊 提交于 2019-12-04 18:03:04
In C++ I'm generating a PDF report with libHaru . I'm looking for someway to append two pages from an existing PDF file to the end of my report. Is there any free way to do that? Thanks. Troy Howard Try PoDoFo http://podofo.sourceforge.net/ You should be able to open both of the PDFs as PDFMemDocuments using PDFMemDocument.Load( filename ) . Then, acquire references to the two pages you want to copy and add to the end of the document using InsertPages , or optionally, remove all but the last two pages of the source document, then call PDFDocument . Append and pass the called document. Hard to