Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I create a PDF document in “landscape” orientation?

0
Posted

How can I create a PDF document in “landscape” orientation?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123