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
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
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
Thank you, it works.
But how can i rotate backwards? -90 is wrong.
Bernd
You can use 90, 180, 270, -90, -180, -270
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?
Statt -90 geht auch 270 - das wäre das gleiche.
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?
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.