We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

[PDF] Merge all annotations type

Hello,


Today, we have a service that merges all annotations from several identical pdf files, into one pdf file, with all annotations.
We need to take into account also the free hand drawing annotation type.

Please find enclosed the existing code for merging all annotations, and an example of PDF files to merge.

Thank you very much.
Best regards.

Alexis.

Hi Alexis,


Thanks for your inquiry. I have checked your sample code and I am afraid I am unable to resolve the Note, Flash, None, Video and TextMarkup annotations in your share code. Can you please confirm which Aspose.Pdf version are you using that supports these annotations or you want the support these annotations along with free hand annotation in Aspose.Pdf? We will appreciate it if you please clear it, so we will address your issue exactly.

We are sorry for the inconvenience caused.

Best Regards,

Hi,


We are using the Aspose.PDF version 10.2.0.

If the Note, Flash, Video and TextMarkup annotation type don’t work, could you please manage also these types ?

Thank you.

Best regards.

Alexis.

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 details 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 :

o F. Insert text at cursor<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

o G. Replace text

o H. Strikethrough

Many thanks in advance.

Raphaël

Hi Raphael,


Thanks for your inquiry. I am afraid the reported issue is still not resolved as product team is busy in resolving other issues in the queue, reported earlier. However I have raised the issue priority of your above reported issue and requested our team to share an ETA at their earliest. We will notify you as soon as we made some significant progress towards issue resolution.

We are sorry for the inconvenience caused.

Best Regards,

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,


Thanks for your patience.

Your concerns have been recorded with product team and I have intimated them to share the possible ETA. As soon as we have some further updates, we will let you know.

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,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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>();<o:p></o:p>

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();

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,


Thanks for your feedback. It is good to know that you have managed to accomplish your requirement.

Please keep using our API and and feel free to contact us for any query or concern, we will be more than happy to extend our support.

Best Regards,

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.