2.3.07. Change document orientation

There is no direct setting for changing page orientation in Swing PDF Converter API.
However, page orientation can simply be changed by swapping page width and height.
Here's the sample code:

Dim temp As Double
temp = swPdf.PDFSettings.PageHeight
swPdf.PDFSettings.PageHeight = swPdf.PDFSettings.PageWidth
swPdf.PDFSettings.PageWidth = temp

Comments