Welcome Guest Search | Active Topics | Sign In | Register

Render html with paginator on top of exisiting Pdf Options
Kees Alderliesten
Posted: Monday, October 14, 2019 8:18:18 AM
Rank: Newbie
Groups: Member

Joined: 12/5/2017
Posts: 2
I am rendering HTML to pdf using a paginator (as explained here) and it works fine. But now I want to render it 'on top' of an existing pdf with the company letterhead etc). This forum post shows how to do that with 'new PdfDocument' but using the paginator I don't use that construct. How do I specifiy an existing pdf with the Paginator?
eo_support
Posted: Tuesday, October 15, 2019 10:59:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

You can use this overload for this purpose:

https://www.essentialobjects.com/doc/eo.pdf.htmltopdfsession.renderaspdf_overload_5.aspx

For example, if you want the output to start from the second page of your template file, you can do:

Code: C#
session.RenderAsPDF(paginator, template.Pages[1]);


Please let us know if that works for you.

Thanks!
Kees Alderliesten
Posted: Tuesday, October 15, 2019 11:14:54 AM
Rank: Newbie
Groups: Member

Joined: 12/5/2017
Posts: 2
That works perfectly! Thanks!

Best regards,

Kees
eo_support
Posted: Tuesday, October 15, 2019 11:17:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Glad to hear that! Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.