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

Erik Scholtz commented on PDFBOX-609:
-------------------------------------

Andreas,
sorry for answering so late: I also could not find it in the pdf references; I 
build a PDF with AcrobatPro 7 and AcrobatPro 9 setting a RubberStamp. Both 
added the parent relation. I used the "long way" (getDictionary().setItem( 
COSName.PARENT, myparent.getDictionary() );) to create that link too. It would 
be more compfortable to have this method - also other COSObject seem to have 
this method too. That makes me think, it is missing, as well as it is missing 
in the reference (by error?).

> PDAnnotationRubberStamp is missing a setParent method
> -----------------------------------------------------
>
>                 Key: PDFBOX-609
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-609
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 0.8.0-incubator, 1.0.0
>         Environment: all
>            Reporter: Erik Scholtz
>            Priority: Trivial
>
> PDAnnotationRubberStamp class is missing a setParent method:
> Simply to add:
> /**
> * This will set the RubberStamps parent it relates to.
> *
> * @param myparent
> *            the parent of the RubberStamp (usually a page).
> */
> public void setParent( COSObjectable myparent ) {
>         getDictionary().setItem( COSName.PARENT, myparent.getDictionary() );
> }
> The setParent is needed to build correctly RubberStamps with a customized 
> appearance.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to