Welcome Guest Search | Active Topics | Sign In | Register

How to add pdf document to an existing HtmlElement Options
K. Zimny
Posted: Friday, June 23, 2017 5:49:59 PM
Rank: Member
Groups: Member

Joined: 8/4/2014
Posts: 11
How to replace an existing HtmlElement from rendered pdf document with another pdf document?
Actually I do something similar with the image:

Code: C#
HtmlToPdfResult result = HtmlToPdf.ConvertHtml(concat, doc, options);
AcmRender render = new AcmRender(doc, new AcmPageLayout(new AcmPadding(0)));

HtmlElement htmlImagePlan = result.HtmlDocument.GetElementById("courseplan");
AcmImage insertPlan = new AcmImage(CoursePlan(sClassPlan));
insertPlan.Style.Width = 3.67f;
insertPlan.Style.Height = 2.55f;

AcmBlock acmBlockPlan = new AcmBlock(insertPlan);
acmBlockPlan.Style.Left = htmlImagePlan.Location.X;
acmBlockPlan.Style.Top = htmlImagePlan.Location.Y;

render.Render(acmBlockPlan);


Instead of creating AcmImage element I want to inject a pdf file. How to achieve that?
eo_support
Posted: Friday, June 23, 2017 6:14:37 PM
Rank: Administration
Groups: Administration

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

This is not currently supported. You can merge two PDF pages by adding one page after the other page, but you can not add one page into another page. In another word, merging two PDF pages will always result in two pages, you can not merge two pages into a single page.

Thanks!


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.