[ 
https://issues.apache.org/jira/browse/PDFBOX-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17036230#comment-17036230
 ] 

Andrew Hung commented on PDFBOX-4773:
-------------------------------------

I've attached the 4 files modified at this moment. Description below:

1) FDFDictionary.java - modified writeXML to process the FDFAnnotations

2) FDFAnnotation.java - added writeXML method (does nothing since the 
requirements for each annotation will be different, instead handled by 
subclasses)

3) FDFAnnotationCircle.java - added writeXML to write the circle metadata

4) FDFAnnotationSquare.java - added writeXML to write the square metadata

5) FDFAnnotationLine.java - added writeXML to write the line metadata

 

Looking into FDFAnnotationHighlight.java - adding writeXML to write highlight 
metadata, though not 100% sure what's fully required but need to handle the 
appearance as a gesture.

> Missing writeXML for FDFAnnotations
> -----------------------------------
>
>                 Key: PDFBOX-4773
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4773
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.17
>         Environment: Windows
>            Reporter: Andrew Hung
>            Priority: Major
>             Fix For: 2.0.19
>
>         Attachments: FDFAnnotation.java, FDFAnnotationCircle.java, 
> FDFAnnotationLine.java, FDFAnnotationSquare.java, FDFDictionary.java
>
>
> Hi All,
>  
> I'm working on enhancement (contribution) for save annotations into XFDF 
> file, though I cannot find the XFDF specification that are publicly available.
> It will be hard to implement properly otherwise for all the different types 
> available, though I have partially developed it for line, circle and square.
>  
> Currently PDFBox does not have this capabilities, only has ability for form 
> fields.
>  
> I'll upload the modified files once I've gotten to a break-point
>   
> Thank you,
> Andrew H



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to