Welcome Guest Search | Active Topics | Sign In | Register

Issue with AcmLink() when overwriting on the existing page Options
Mathivanan
Posted: Tuesday, March 29, 2016 9:46:50 AM
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.
eo_support
Posted: Tuesday, March 29, 2016 2:59:27 PM
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.aspx

Thanks!
eo_support
Posted: Thursday, March 31, 2016 10:41:10 AM
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!
eo_support
Posted: Friday, April 1, 2016 5:19:04 PM
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!


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.