Developer forum

Forum » CMS - Standard features » How to create PDF in landscape

How to create PDF in landscape

Lars Larsen
Reply

Hi,

Is it possible to create a PDF in landscape in DW8?


Replies

 
Nicolai Høeg Pedersen
Reply

Not out of the box.

 

You can do Dynamicweb.PDFClass.ConvertHTML("<h1>Hello World</h1>", 297, 210)

 

That would render the parsed HTML to a canvas of the size of A4 in landscape.

 

BR Nicolai

 
Lars Larsen
Reply

Hi Nicolai

I know it is possible by code, as you suggest, but we want to do it without custom code. I wondered if there where a querystring parameter that can be added to an url with PDF=true to generate a landscape oriented PDF?

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

I figured, but it is not possible.

 

Just added it though. So from NeXT hotfix you can add &landscape=true to the URL.

TFS#11803

 

BR Nicolai

Votes for this answer: 1
 
Lars Larsen
Reply

Oh... that is perfect. Thanks a lot Nicolai :-)

 

You must be logged in to post in the forum