0
如何將Word文檔轉換爲PDF,以便頁面設置(如源文檔的邊距和方向以及輸出PDF需要相同)。我試過以下代碼E-ICEBLUE 。使用spire文檔將原始文檔尺寸轉換爲pdf文檔
'Load Document
Dim document As New Document()
document.LoadFromFile("E:\work\documents\TestSample.docx")
'Convert Word to PDF
document.SaveToFile("toPDF.PDF", FileFormat.PDF)
'Launch Document
System.Diagnostics.Process.Start("toPDF.PDF")
但是,轉換後的PDF沒有完整的文檔。它的頁眉和頁腳未顯示,文檔的右側正在切割。如何解決這個問題? This is my converted pdf
具有u看了COM互操作? – Codexer