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

Tilman Hausherr commented on PDFBOX-4437:
-----------------------------------------

What you could so is this: get the source code and find FDFAnnotation.java 
(FDFAnnotationStamp.java might also work). Here's the "dumb" code I added to 
the constructor with Element parameter:
{code}
System.out.println("children: " + element.getChildNodes().getLength());
NodeList childNodes = element.getChildNodes();
for (int i = 0; i < element.getChildNodes().getLength(); ++i)
{
    Node item = childNodes.item(i);
    System.out.println(i + ": " + childNodes.item(i).getClass() + " " + item);
    if (item instanceof Element)
    {
        Element el = (Element) item;
        System.out.println("el: " + el + ", len: " + 
el.getAttributes().getLength() + ", children: " + 
el.getChildNodes().getLength());
        for (int j = 0; j < el.getChildNodes().getLength(); ++j)
        {
            Node item2 = el.getChildNodes().item(j);
            System.out.println("\tel2: " + item2);
        }
    }
}
{code}
This was just to look what's coming in. At some point you'll get the base64 
output in item2.


> 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]

Reply via email to