Fields on single lines in Word documents are wrapping to two lines when converted to PDF using COM Helper class.
I have examples of this but can't figure out how to attach these files.
My conversion code is as follows:
<%
On Error Resume Next
Response.Buffer = False
'Response.Buffer = True
Server.ScriptTimeOut = 1200
'// USE THE SOFTARTISANS FILEUP OBJECT TO ACCESS THE UPLOADED FILE.
Dim upld
Set upld = Server.CreateObject("SoftArtisans.FileUp")
'// COLLECT THE FILE NAME FROM THE DOWNLOAD DOCUMENT SCREEN.
sDocFullFileName = upld.Form("DocFullFileName")
Response.write "Converting '" & sDocFullFileName & "' to PDF ... "
'// CONVERT THE MERGE DOCUMENT INTO (strPdfDocSetPath & LoanNumber & ".pdf")
strTmpPdfFile = "C:\test\AsposeTest.pdf"
strTmpXmlFile = "C:\test\AsposeTest.xml"
'// CREATE THE ASPOSE.WORDS COMHELPER ASP WRAPPER OBJECT TO EDIT WORD DOCUMENTS
Dim comHelper
Dim currDoc
set comHelper = Server.CreateObject("Aspose.Words.ComHelper")
licenseFile = "C:\Program Files\Aspose\Aspose.Words\License\Aspose.Words.lic"
Set License = Server.CreateObject("Aspose.Words.License")
License.SetLicense(licenseFile)
If Err.number <> 0 Then
Response.write "<br><h1>***** ASPOSE OBJECT COULD NOT BE CREATED *****</h1>"
Response.end
End If
Set currDoc = comHelper.Open( sDocFullFileName )
If Err.number <> 0 Then
Response.write "<br><h1>***** ERROR OPENING DOCUMENT *****</h1><br>" & Err.description & "<br>"
Resposse.end
End If
currDoc.Save_4 strTmpXmlFile, 3
Dim oPdf
Set oPdf = CreateObject("Aspose.Pdf.Pdf")
oPdf.BindXML_2 strTmpXmlFile, Nothing
oPdf.IsImagesInXmlDeleteNeeded = True
oPdf.Save(strTmpPdfFile)
%>