I just licensed my Aspose.Word and Aspose.PDF and I´m trying to convert a .doc file into a PDF one. Fact is, after converting it I get the only image in the .doc file repeated several times all over the PDF document. Looks like the licensed version is not working properly even though I did not see any watermarks or garbled text after putting the Aspose.Custom.lic file in my project. I attached the doc file so you can check what´s happening. It shows how the PDF should look like after the convertion is done but there is a copy of the company logo every time there is a line feed and the header border is out of alignment.
help please. Thanks
here is the code:
Public Class PDFMaker
Public Sub GeraPDF(ByVal sCaminhoArquivoWord As String, ByVal sArquivoWord As String, ByVal sCaminhoArquivoPDF As String, ByVal sArquivoPDF As String)
Try
Dim LicenseWord As New Aspose.Word.License
Dim LicensePdf As New Aspose.Pdf.License
LicenseWord.SetLicense("c:\inetpub\wwwroot\padrao\DLL Ref\Aspose.Custom.lic")
LicensePdf.SetLicense("c:\inetpub\wwwroot\padrao\DLL Ref\Aspose.Custom.lic")
Dim doc As Document = New Document(sCaminhoArquivoWord & sArquivoWord)
doc.Save(sCaminhoArquivoPDF & "input.xml", SaveFormat.FormatAsposePdf)
Dim pdf As Pdf = New Pdf
pdf.BindXML(sCaminhoArquivoPDF & "input.xml", Nothing)
pdf.Save(sCaminhoArquivoPDF & sArquivoPDF)
Kill(sCaminhoArquivoPDF & "input.xml")
Catch ex As Exception
Throw New Exception(ex.Message)
End Try
End Sub
End Class