You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Arsen Borovinskiy (JIRA)" <ji...@apache.org> on 2015/02/15 19:52:11 UTC

[jira] [Comment Edited] (PDFBOX-2673) Add output path prefix param in PDFSplit/Splitter

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

Arsen Borovinskiy edited comment on PDFBOX-2673 at 2/15/15 6:51 PM:
--------------------------------------------------------------------

[~tilman] thank you.

My file for pdfbox 1.8: http://pastebin.com/xk6ybh0q . It tested only one page splitting.

I use:

{code}
  if(outputPrefix == null)
            {
                outputPrefix = pdfFile.substring( 0, pdfFile.lastIndexOf( '.' ));
            }
  String fileName = outputPrefix + "-" + (i+1) + ".pdf";
{code}

pdfFile can be absolute path and outputPrefix can be absolute randomization path like "/tmp/page72vao75" into tmp filesystem or ramdisk. After splitting, i move file from ramdisk into persistent storage.


was (Author: borovinskiy):
[~tilman] thank you.

My file for pdfbox 1.8: http://pastebin.com/xk6ybh0q . It tested only one page splitting.

I use:

  String fileName = outputPrefix + "-" + (i+1) + ".pdf";

pdfFile can be absolute path and outputPrefix can be absolute randomization path like "/tmp/page72vao75" into tmp filesystem or ramdisk. After splitting, i move file from ramdisk into persistent storage.

> Add output path prefix param in PDFSplit/Splitter
> -------------------------------------------------
>
>                 Key: PDFBOX-2673
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2673
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Utilities
>    Affects Versions: 1.8.8, 2.0.0
>            Reporter: Arsen Borovinskiy
>            Priority: Minor
>
> Stateless framework (like php) must randomization output for concurrency safe split document from command line.
> Please add a parameter -outputPrefix as seen in PDFToImage: https://github.com/apache/pdfbox/blob/1.8/pdfbox/src/main/java/org/apache/pdfbox/PDFToImage.java 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org