[
https://issues.apache.org/jira/browse/PDFBOX-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16750216#comment-16750216
]
Andrew Hung commented on PDFBOX-4437:
-------------------------------------
Thank you for clarifying and actually answer additional questions I had, not
clear what you mean by saving and using createRawOutputStream (I'll need to
look into this).
So my understanding based to properly do this would be something of this
structure
COSDictionary for DICT(AP)
* COSDictionary for STREAM(N) -> or is this a COSStream
(PDAppearanceDictionary initial creates this as a COSDictionary)
** COSArray for ARRAY(BBox)
** COSInteger for INT(FormType)
** COSArray for ARRAY(Matrix)
** COSString for NAME(Name)
** COSDictionary for DICT(Resources)
*** COSDictionary for DICT(XObject)
**** COSStream for STREAM(xobj1)
***** .. more basic COS Object
***** COSStream for STREAM(SMask)
****** Stream the data value into parent cosstream
**** COSStream for STREAM(xobj2)
***** ...
** Stream the data value into parent dictionary
Is this what you are suggesting? I'll need to really tweak my modification,
though does sound right but not 100% clear especially for the STREAM elements
> Import XFDF stamp annotation loses appearance
> ---------------------------------------------
>
> Key: PDFBOX-4437
> URL: https://issues.apache.org/jira/browse/PDFBOX-4437
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.9, 2.0.10, 2.0.11, 2.0.12, 2.0.13
> Reporter: Andrew Hung
> Priority: Major
> Attachments: A1.01 - MYLES - 2ND-4TH FLOOR PLAN.pdf,
> FDFAnnotationStamp.java, FDFAnnotationStamp2.java,
> Stamp_appearance_decoded.txt, stamp_annotation.xfdf, xfdf stamp annotation to
> PDF.zip
>
>
> When loading an XFDF which has a stamp annotation which contains an
> appearance element after added to the PDF in place of the annotation is an
> box with an X.
> Reviewing the FDFAnnotationStamp class, it skips all internal elements. Is
> there any development being done to enhance this?
> I've attached "xfdf stamp annotation to PDF.zip" which has an example, if you
> open the stamp_annot.xfdf it will show on the PDF. While using PDFBox API
> the only piece missing is the appearance of the stamp.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]