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?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
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!
|