Hello,
Hi Alexis,
Hi,
Hi Alexis,
Thanks for sharing the details.
I have tested the scenario and have managed to reproduce the same issue that some of the Polygon, Text Highlight, Stamp, Comments and Free Hand writing Annotations are not imported in final merged PDF file.
For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38434. We will investigate this issue in detail and will keep you updated on the status of a correction.
We apologize for your inconvenience.
Dear Support team,
Is it possible to have a status on this subject? When will it be available?
All we need is a correction for the next annotations:
-
- F.Insert text at cursor
-
- G.Replace text
-
- H.Strikethrough
Many thanks in advance.
Raphaël
Hi Raphael,
Dear Support team,
I understand your answer but I need a resolution date for this issue. I have customers too and I can’t say every weeks “It will be resolved soon”. I hope you understand my position and I try everyday to explain to our customers that you are reactive but they can’t have the same vision as mine.
So please, when you answer me, give me an approximate date of resolution.
Many thanks in advance.
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-GB</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–>
Regards,
|ICA2|||Raphaël BERTOLINO
IC – SAP SUPPORT
ICA2 (AIRBUS Operation SAS)
Phone : +33 (0)5 61 18 58 45
Mailto : raphael.bertolino.external@airbus.com
Mailto : ic.sap-support@airbus.com
Hi Raphaël,
Dear team,
One more time, I don’t ask you to work and resolve the issue faster, I just want to have an idea of the resolution date.
Cdlt/Regards,
ICA2 Raphaël BERTOLINO
IC – SAP SUPPORT
INFOTEL - Subcontractor for ICA2 (AIRBUS Operation SAS)
Phone : +33 (0)5 61 18 58 45
Mailto : raphael.bertolino.external@airbus.com
Mailto : ic.sap-support@airbus.com
Hi Raphaël,
Thanks for your patience.
We have further investigated the issue reported earlier and in order to resolve this issue, please add required annotation types into annotType array.
Highlight, Polygon, Popup, Stamp, Ink are absent in that array and that’s why they are not included into import. Please modify code in the following way:
C#
List<Document> pdfFiles = new List<Document>();
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000886ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000887ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000888ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000889ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000890ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000891ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000892ENV.pdf"));
pdfFiles.Add(new Document(@"C:\pdftest\test-annot\008400000423-000893ENV.pdf"));
// Merging comments
Boolean isFirst = true;
Document result = new Document();
PdfAnnotationEditor finalEdit = null;
foreach (Document d in pdfFiles){
if (isFirst) {
result = d;
isFirst = false;
finalEdit = new PdfAnnotationEditor();
finalEdit.BindPdf(result);
}
else {
//Extract annotations from current pdf d
PdfAnnotationEditor currentEdit = new PdfAnnotationEditor();
//Extract annotations from current pdf d
PdfAnnotationEditor currentEdit = new PdfAnnotationEditor();
currentEdit.BindPdf(d);
MemoryStream annotstream = new MemoryStream();
Enum[] annotType = {
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Line,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Text,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Circle,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.FreeText,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Sound,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Square,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Highlight,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Polygon,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Popup,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Stamp,
Aspose.Pdf.InteractiveFeatures.Annotations.AnnotationType.Ink
};
currentEdit.ExportAnnotationsXfdf(annotstream, 1, d.Pages.Count, annotType);
annotstream.Position = 0;
// Import annotations in result file
finalEdit.ImportAnnotationFromXfdf(annotstream, annotType);
}
}
result.Save(@"C:\pdftest\test-annot\FinalOutput.pdf");
Hello,
Thanks a lot for your help.
Your solution works well.
Raphaël
Hi Raphael,
The issues you have found earlier (filed as PDFNEWNET-38434) have been fixed in Aspose.Pdf for .NET 11.0.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.