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

Andreas Lehmkühler commented on PDFBOX-5522:
--------------------------------------------

{quote}Yes but that one is package-scoped. What I meant is that he can't just 
write his own external save().{quote}
I see, I have subclassing PDDocument in my mind and that would require to 
choose {{org.apache.pdfbox.pdmodel}} as package which might be suboptimal.


{quote}It is public... {quote}
[~tilman] I just re-tead your answer? What are you referring to? Yes, COSWriter 
is public from a technical point of view as many other classes within PDFBox. 
But that doesn't necessarily mean that those are automatically part of a public 
api.

> Add public void save(COSWriter writer) to PDDocument
> ----------------------------------------------------
>
>                 Key: PDFBOX-5522
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5522
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: PDModel
>    Affects Versions: 2.0.28, 3.0.0 PDFBox
>            Reporter: Stefan Ziegler
>            Priority: Minor
>         Attachments: PDDocument.java.patch
>
>
> Please add the following method to PDDocument:
>  
> {code:java}
> public void save(COSWriter writer){code}
>  
> Why?
> This gives us the possibility to use a custom COSWriter when saving the PDF 
> file. Inside the custom COSWriter we can add some checks and convert some 
> data structures if required.
>  
> Patch is attached.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to