Welcome Guest Search | Active Topics | Sign In | Register

Landscape Options
Gerardo Celentano
Posted: Wednesday, April 24, 2013 12:00:09 AM
Rank: Newbie
Groups: Member

Joined: 4/23/2013
Posts: 2
Hello,
i have a question about how to generate a PDF from an aspx (sharepoint) page, directly in landscape mode.

In a aspx page I have used the following control:

<eo:ASPXToPDF runat="server" ID="ASPXToPDF1" Visible="False"></eo:ASPXToPDF>

The code used to print the pdf is the following:

protected void PDF_Click(object sender, EventArgs e)
{

ASPXToPDF1.RenderAsPDF("test" + ".pdf");
ASPXToPDF1.Dispose();
}


My problem is how can I rotate the generated pdf in landscape?
The are a properties or methods?

Thank you
Gerardo
eo_support
Posted: Wednesday, April 24, 2013 7:19:35 AM
Rank: Administration
Groups: Administration

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

You don't rotate it. You set this property to a different size:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.pagesize.aspx

Thanks!
Gerardo Celentano
Posted: Wednesday, April 24, 2013 12:37:04 PM
Rank: Newbie
Groups: Member

Joined: 4/23/2013
Posts: 2
Hi, thank you for the answer.
I'll try to bettere explain. I have a very large page (i can send you a simple PDF by mail), so i need to generate a PDF in "landscape" mode.
By setting the propriety you suggested, can i obtain the same result as a landscape page?

Thank you very much

Gerardo
eo_support
Posted: Wednesday, April 24, 2013 12:42:05 PM
Rank: Administration
Groups: Administration

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

There is no such thing as "landscape" technically. A landscape page is just a different page size.

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.