How can I create a PDF document in “landscape” orientation?
The OFD function pdfSetBBox can be used to create a PDF document in landscape orientation. In the Redix PDF Module, the default boundary box is for the portrait orientation, which is equivalent to the following pdfSetBBox statement: pdfSetBBox(pdf, 4, 0.0, 0.0, 612.0, 792.0); If the user wants to create a PDF document in “landscape” orientation, then the user should use the following statement: pdfSetBBox(pdf, 4, 0.0, 0.0, 792.0, 612.0); Below is an OFD example (demo.ofd) that demonstrates how to toggle between the portrait and landscape orientations. The first page is a portrait page, the second page is a landscape page, and the third page is another portrait page. pdfSetBBox function calls have been highlighted in blue. output ret:=pdfCreateNewPDF(“test_out.pdf”); # Open our NEW PDF file; ret:=pdfAppend(); # Add First Page; ret := pdfSetFont(“Arial”, 2, 10.0, 0, 2); Ret := pdfSetBBox(4, 0.0, 0.0, 612.0, 792.0); # Need to alwasy set BBox, to ensure proper height of page; # Corners; Re