Setting Page Orientation
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.PageSize := pfA4;
PDF.PageOrientation := pLandscape;
PDF.ShowText('Test');
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->PageSize = pfA4;
PDF->PageOrientation = pLandscape;
PDF->ShowText("Test");
PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created
PDF.PageSize = PaperFormat.pfA4;
PDF.PageOrientation = PaperOrientation.pLandscape;
PDF.ShowText("Test");
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.PageSize = 2 'PaperFormat.pfA4
PDF.PageOrientation = 1 'PaperOrientation.pLandscape
PDF.ShowText "Test"
PDF.SaveToFile "test.pdf", true