WPCubed Product Support

How can I detect a rotated pdf?

Thank you very much Martin

Edorta

@martincastroa:
HI, This worked for me:

WPViewPDF1.command(COMPDF_GetPageRotation, inttostr(WPViewPDF1.page))

Regards,

Martín Castro

#3 ♥ 0
5.1k Views 2 users read 1 min

HI, This worked for me:

WPViewPDF1.command(COMPDF_GetPageRotation, inttostr(WPViewPDF1.page))

Regards,

Martín Castro

#2 ♥ 0

Hi,

I've got a vertical pdf which is rotated 90º so it is viewed as landscape.
In order to set viewer's initial zoom properly, I read the height and width of the document to determine if it is landscape or not. With this document I get height= 842 and width= 595 (vertical A4).
Is there any way to know if the pdf is rotated?
Is there any way to know if a document is landscape (rotated or not)?

Thanks in advance

#1 ♥ 0