[
https://issues.apache.org/jira/browse/PDFBOX-3323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250433#comment-15250433
]
Tilman Hausherr edited comment on PDFBOX-3323 at 4/20/16 6:20 PM:
------------------------------------------------------------------
How would you like this to work - just assign both in the mergeDocuments()
call, just before saving?
{code}
while (sit.hasNext())
{
sourceFile = sit.next();
source = PDDocument.load(sourceFile, partitionedMemSetting);
tobeclosed.add(source);
appendDocument(destination, source);
}
///// insert here?
if (destinationStream == null)
{
destination.save(destinationFileName);
}
else
{
destination.save(destinationStream);
}
{code}
Note that the release vote process is planned for friday, so the change likely
won't be in time.
was (Author: tilman):
How would you like this to work - just assign both in the mergeDocuments()
call, just before saving?
{code}
while (sit.hasNext())
{
sourceFile = sit.next();
source = PDDocument.load(sourceFile, partitionedMemSetting);
tobeclosed.add(source);
appendDocument(destination, source);
}
///// insert here?
if (destinationStream == null)
{
destination.save(destinationFileName);
}
else
{
destination.save(destinationStream);
}
{code}
> Cannot set destination meta data in PDFMergerUtility
> ----------------------------------------------------
>
> Key: PDFBOX-3323
> URL: https://issues.apache.org/jira/browse/PDFBOX-3323
> Project: PDFBox
> Issue Type: Improvement
> Affects Versions: 1.8.9, 2.0.0
> Reporter: Alexander Kriegisch
> Labels: merge, metadata
>
> When merging multiple PDFs into one compound document via
> {{PDFMergerUtility}}, meta data like title, author, subject cannot be set but
> seem to be taken from one of the input documents. This is usually not the
> desired behaviour because as a user I have no direct influence on the meta
> data. As a user I would like to explicitly set or at least overwrite certain
> meta data for the destination document. Currently I can only set the
> destination stream or file name, but not the meta data.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]