Hey! I'm testing out DynamicPDF in solution where I am generating pages from my website dynamically - the pages breaks can occur at anytime and the number of pages can vary.
What I am looking to do is import a PDF for the first page (with one set of margins) and have everypage after the first use another PDF with another set or magrins.
The program will have to know when page one ends since I won't be manually entering a page break.
Is this possible?
Thanks
Cover Page & Dynamic Pages
Re: Cover Page & Dynamic Pages
Support · Aug 14, 2006Hello,
If you want to append a cover page to another PDF document you can do this by using our DynamicPDF Merger for .NET product. You can add one PDF document with margins to another PDF document with different margins without any problem. In this case, if the first PDF has one page then the second PDF document will be appended from the second page onwards.
If the first PDF elements or contents end in the middle of the page, it is not possible to start the second PDF from the middle of the first page. You can append another PDF from second page only.
Thanks,
ceTe Software Support Team
Re: Cover Page & Dynamic Pages
Forum member · Aug 14, 2006I'm not sure you quite understood my question, so let me reword in case you didn't.
My goal is to create one PDF with DynamicPDF, not two and then merge them together. But I want that one PDF to be on my "letterhead" which consits of the first page with a certain type of margins and all the following pages have different margins. I have exported my letterhead template as PDF so I can import it into DynamicPDF as a base.
What I'm wanting to know is - Is there any way "on the fly" for DynamicPDF to switch to another PDF template and margin size when it hits page 2, seeing as page2 is not being manually created inthe code, but dynamically according to how much content is added.
Re: Cover Page & Dynamic Pages
Support · Aug 14, 2006Hello,
Yes, it is possible to accomplish this using our product. But when you say the page will not be created in the code, will the second page come from another PDF document? If yes, you can preserve the dimensions of the second PDF document when appending to the second page. If you will not be appending another PDF, then you will have to write the logic to check if the contents won't fit on one page, and then create an instance of the Page object to add the overflow contents and you can set the dimensions as well as margins for the second page depending on your requirement.
Thanks,
ceTe Software Support Team
Re: Cover Page & Dynamic Pages
Forum member · Aug 14, 2006Thanks for your help. I'll give it a shot.
Sorry for not looking into this more before posting here, but I just finished wrestling with iTextSharp for a week to finally get it to work the way I wanted, and then when I went to deploy it, it wouldn't work with the security settings of my hosting providor.
So I've been kind of leary of having to relearn another one.