Question
Concatenate two Paragraphs or two PDFs into one PDF File.
Hi,
I have two paragraphs that I need to concatenate into a single PDF file, preserving the line numbering in each document. I am able to append the two paragraphs into a single one and use HTMLToPDF to merge them into one PDF file, but the total line number includes the second file, and I need the total page number to stop at the total number of pages of the first file. Any ideas how to achieve this using Pega activities or pd4ml?
Thanks,
Maria
***Updated by moderator: Lochan to update Categories***
Hello Maria,
I'm not sure I understand the question. You have a 2 page document that you are merging with another 2 page document and then converting them to PDF and are trying to get the final PDF file to be 4 pages long, but report that it only has 2? And similarly with the line numbers, you want to what? To start the counting over again, when the second document starts?
I suspect if you want custom page numbering and custom line numbering, then you'll have to do the numbering outside of the tools within the PDF. The good news is that HTMLtoPDF converts an HTML stream, so if you can figure out how to format the stream to include your line and page numbers, it should convert them to PDF for you. The bad news (assuming I understood you correctly) is that I don't believe there is an out of the box facility to give you what you want.
Thanks,
Mike