WPCubed Product Support

PDF rotating

wpsupport

Rotated PDFs will not be printed rotated. The paper orientation will be adjusted according to the rotated flag.

PDF rotation actually does not rotate anything, it just sets the display mode for a certain page.

#8 ♥ 0
8.8k Views 2 users read 1 min

If i print this rotated 90 Degrees PDF, the PDF prints in DIN A4 Portrait and not rotated in landscape.

How can i do that?

#7 ♥ 0

I test it; my Code:

// 90grad nach Rechts:

PDF.CommandStrEx(COMPDF_RotatePage, '1', 90); // ist OK

// 90grad nach Links:

PDF.CommandStrEx(COMPDF_RotatePage, '1', -90); // Fehler: Konstantenausdruck verletzt untere Grenzen!!!

What is wrong?

#5 ♥ 0

Thank you, it works.

But how can i rotate backwards? -90 is wrong.

Bernd

#3 ♥ 0
wpsupport

Each page can be rotated individually by 90 degrees angle.

You can use this command:

COMPDF_RotatePage = 492; // StrParam = page list, for example "1-2", (1 based)

// StrParam = page number, 1 based

// IntParam = Rotation value

// Rotation: ([1,2,3,4]-1)*90 or +- offset

// StrParam="selected" and StrParam="all" is also possible

#2 ♥ 0

Hi,

is a rotate-function for the PDF-Viewing availible?

We need a rotate-90-degrees right or -left-function. (Like Acrobat or PDF-X-Change)

best regards

Bernd

#1 ✎ ♥ 0