Hello,
In our application, we encounter an issue when saving a PDF file : some fields get the font modified or carriage returns are no more displayed correctly. This happens when merging more than one page (page two and more should have the same page settings than page one)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Here is an example :
The fields « Type d’intervention » and « Description » have been modified
PDF files are linked to this post (Fiche complete-before-rename.pdf and Fiche complete-after-rename.pdf)
Dim pEditor As Aspose.Pdf.Facades.FormEditor
Dim pfile As Uri
pfile = New Uri(mpCurrentFile.LocalPath)
pEditor = New Aspose.Pdf.Facades.FormEditor()
pEditor.BindPdf(mpCurrentPdfDocument)
For Each fieldName As Aspose.Pdf.InteractiveFeatures.Forms.Field In mpCurrentPdfDocument.Form.Fields
If fieldName.PartialName.IndexOf(prefixFilter) = -1 Then
pEditor.RenameField(fieldName.FullName, AddSuffixeToPartialName(fieldName.PartialName, suffix))
End If
Next
pEditor.Save(pfile.LocalPath)
pEditor.Close()
pEditor = Nothing
We get the same behaviour when we try to copy a PDF file into another one :
The file before Copy is OK but when it is copied into another one, the fields « Type d'intervention » and « Description » have been modified
PDF files are linked to this post (Fiche complete-Before_Copy.pdf, Fiche complete-page_to_add.pdf, Fiche complete-After_Copy.pdf)
Private Sub CopyPagesTo(ByVal targetUri As System.Uri)
Dim pTargetDoc As Aspose.Pdf.Document
pTargetDoc = New Aspose.Pdf.Document(targetUri.LocalPath)
pTargetDoc.Pages.Add(mpCurrentPdfDocument.Pages)
pTargetDoc.Save(targetUri.LocalPath)
End Sub
Would you have any idea to solve our issue ?