You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2022/10/02 10:24:00 UTC
[jira] [Comment Edited] (PDFBOX-5522) Add public void save(COSWriter writer) to PDDocument
[ https://issues.apache.org/jira/browse/PDFBOX-5522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612063#comment-17612063 ]
Tilman Hausherr edited comment on PDFBOX-5522 at 10/2/22 10:23 AM:
-------------------------------------------------------------------
It is public... the only thing that would prevent from writing this on his own is accessing {{fontsToSubset}} in PDDocument.
was (Author: tilman):
It is public... the only thing that would prevent from writing this on his own is accessing {{fontsToSubset}}.
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org