Hello,
I have created a word .doc document, I want to save it (=convert) as a .pdf.
This is the code:
Dim MyDocumentA As New Document()
Dim SezHeader As Section = MyDocumentA.AddSection()
With (SezHeader.PageSetup)
.PageSize = PageSize.A4
.Orientation = PageOrientation.Landscape
end with
MyDocumentA.SaveToFile(MyNewPdf, Spire.Doc.FileFormat.pdf)
If I save it as a word document (MyDocumentA.SaveToFile(MyNewDoc, Spire.Doc.FileFormat.doc) it works fine and creates an A4 word document with landscape orientation,
but if I save it as a pdf document as above, it creates an A4 pdf document with portrait orientation....
Cane anyone help me?
Thank you,
Paola