Welcome Guest Search | Active Topics | Sign In | Register

Programmatically Adding Page Breaks using Creator API Options
Des Owen
Posted: Thursday, March 12, 2015 4:38:13 AM
Rank: Newbie
Groups: Member

Joined: 12/10/2010
Posts: 2
Hi

I am using a older purchased version of EO.PDF (version 2.0.27.2) and I am creating a PDF within a C# Console App. When adding certain content I want to ensure it starts on a new page but I can't see how to do that. I can create new pages but the content doesn't get added to the new pages.

So I have a main AcmBlock called contents that I build up by adding paragraphs, images, tables etc.

Code: C#
AcmBlock contents = new AcmBlock();
// I want to make the following header appear on a new page
AcmParagraph header = BuildHeaderBlock(ti.Title, ti.Font, ti.FontSize);
if (header != null)
{
        contents.Children.Add(header);
}


Hope someone can help.
eo_support
Posted: Thursday, March 12, 2015 9:58:11 AM
Rank: Administration
Groups: Administration

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

Version 2.0.27.2 is a very old version that we no longer support, but you can check whether you have this class in your version:

http://www.essentialobjects.com/doc/4/eo.pdf.acm.acmpagebreak.aspx

This will force a page break.

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.