[
https://issues.apache.org/jira/browse/PDFBOX-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16747010#comment-16747010
]
Tilman Hausherr commented on PDFBOX-4437:
-----------------------------------------
Thanks, I didn't even look at it, because I had hoped this was related to a
specific problem that had been solved not long ago (by a helpful user), but it
isn't. Now I looked at the XML, the appearance part is base64 encoded and has
XML again:
{noformat}
<DICT KEY="AP"><STREAM KEY="N"><ARRAY KEY="BBox"><FIXED VAL="0.000000"/>
<FIXED VAL="0.000000"/>
<FIXED VAL="512.000000"/>
<FIXED VAL="512.000000"/>
</ARRAY>
<INT KEY="FormType" VAL="1"/>
<INT KEY="Length" VAL="68"/>
<ARRAY KEY="Matrix"><FIXED VAL="-0.000000"/>
<FIXED VAL="1.000000"/>
<FIXED VAL="-1.000000"/>
<FIXED VAL="-0.000000"/>
<FIXED VAL="-0.000000"/>
<FIXED VAL="-0.000000"/>
</ARRAY>
<NAME KEY="Name" VAL="FRM"/>
<DICT KEY="Resources"><DICT KEY="XObject"><STREAM KEY="xobj1"><INT
KEY="BitsPerComponent" VAL="8"/>
<NAME KEY="ColorSpace" VAL="DeviceRGB"/>
<NAME KEY="Filter" VAL="DCTDecode"/>
<INT KEY="Height" VAL="2033"/>
<BOOL KEY="Interpolate" VAL="true"/>
<INT KEY="Length" VAL="98993"/>
<STREAM KEY="SMask"><INT KEY="BitsPerComponent" VAL="8"/>
<NAME KEY="ColorSpace" VAL="DeviceGray"/>
<NAME KEY="Filter" VAL="FlateDecode"/>
<INT KEY="Height" VAL="2033"/>
<BOOL KEY="Interpolate" VAL="true"/>
<INT KEY="Length" VAL="18812"/>
<NAME KEY="Subtype" VAL="Image"/>
<NAME KEY="Type" VAL="XObject"/>
<INT KEY="Width" VAL="1089"/>
<DATA ENCODING="HEX"
MODE="RAW">789CEDDD89BF6EE5D807F07D4E6992E29044197AD52B4332678A121129A450990B494288572153282443322543BD85E455864C1199338628438644A8A438757A2BC919F6F03C6B3F6BFDEE7BADEFF72FB8EFEBBEAEDFE77CCEDA7B5F5353D559B4EDF3DFFD851F9D7B05F4C5EF7FF8F9773
….
{noformat}
There is no development being done there currently.
An alternative would be to recreate the appearance stream, but this hasn't been
implemented for stamp annotations. (It is implemented for many annotations in
PDFBOX-3353 for the trunk only)
> 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: 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]