|
Rank: Newbie Groups: Member
Joined: 2/21/2016 Posts: 8
|
Hi Team,
When write block above the existing page AcmLink is not working as expected. Below is the code i used.
public void RunDemo(string outputFileName) { //Create a new PdfDocument PdfDocument doc = new PdfDocument(@"C:\Panel.pdf");
//Create a new AcmRender object PdfDocument doc2 = doc.Clone(1, 1);
AcmRender render = new AcmRender(doc2.Pages[0],0, new AcmPageLayout(new AcmPadding(0.3f))); //Handle the render's BeforeRenderPage event //render.BeforeRenderPage += new AcmPageEventHandler(BeforeRenderPage);
AcmBlock acmcon = new AcmBlock(); AcmTable table = new AcmTable(3f); AcmTableRow row = new AcmTableRow(); AcmTableCell cell = new AcmTableCell();
AcmText linkText = new AcmText("Link and Sample"); linkText.AutoTrim = false;
AcmLink link = new AcmLink(linkText.SetProperty("Style.FontSize", 11f)); cell.Children.Add(link); link.TargetUri = "http://www.google.com";
row.Children.Add(cell); table.Children.Add(row); acmcon.Children.Add(table); acmcon.Style.OffsetY = 0.8f; acmcon.Style.Padding.Left = 1f;
//Render the text render.Render(acmcon);
doc2.Save(outputFileName); } }
Please give me some suggestion that link should work.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, Can you send us your Panel.pdf file as well? You can see our email from this link: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This is just to let you know that we have found the root of the problem. The issue will be fixed in our next build and we will reply again as soon as the new build is posted.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We have posted a new build (2016.0.42.0) that should no longer have this issue. You can download the new build from our download page. Please take a look and let us know how it goes.
Thanks!
|
|