Hi,
I am using aspose.words version 5.2.2.0. and the latest version of Aspose.PDF/PDF.Kit. When converting word docs to PDF, we sometime get a page of meta tags not shown in the word document it self. The problem occurs when a word 2003 document is opened in word 2000 and then converted to PDF. Is there some way we could remove meta tags in the convert process, or maybe check the document for possible issues? See attached documents.
Here is the code I used (VB):
Dim Doc As Aspose.Words.Document = New Aspose.Words.Document(objStream)
'Read the document in Aspose.Pdf.Xml format into Aspose.Pdf.
Doc.SaveOptions.ExportImagesFolder = "C:\WebAppLogs\"
Dim xmlStream As New System.IO.MemoryStream()
Doc.Save(xmlStream, Aspose.Words.SaveFormat.AsposePdf)
xmlStream.Position = 0
pdf.BindXML(xmlStream, Nothing)
pdf.IsImagesInXmlDeleteNeeded = True
'pdf security
pdf.Security = New Aspose.Pdf.Security()
pdf.Security.IsContentsModifyingAllowed = Me.chkPDFTextEditcopy.Checked
pdf.Security.IsCopyingAllowed = Me.chkPDFTextEditcopy.Checked
pdf.Security.IsPrintingAllowed = Me.ChkPDFPrint.Checked
pdf.Security.Is128BitsEncrypted = True
pdf.CompressionLevel = 9
pdf.IsTruetypeFontMapCached = True
pdf.TruetypeFontMapPath = System.IO.Path.GetTempPath()
pdf.Save(PdfStream)
Thanks!
Henning, Oslo