I am trying to create a PDF for a system that is a merge of reports and letters for a print run.
Basically I have a folder full of PDF report forms and then a PDF full of cover letters. The cover letters are generated using an SSRS rdlc file, which has page breaks between each letter. What I need to end up with is a single PDF which goes:
Cover letter / Report / Cover letter / Report etc etc
Now I've found code to Merge PDFs from this thread:
(Thanks Tommy)
This is great and I can easily adapt this to interlace the letters and reports, but I cannot 100% guarantee that the cover letter is a single page.
Is there a way for me to scan a PDF using iTextSharp during the merge process to detect the page breaks? That way I can wait until after the break to add the report.
Thanks in advanced,
J