简体   繁体   中英

Sejda-console split by text : set the output file name to the changed value?

I'm looking to use Sejda to burst a PDF file with payslips into individual payslip files. The split by text option perfectly splits the files per employee number (changing value on the page).

I would like to include this changing value in the output filenames, so I can identify the payslips for each employee.

Any idea how this can be achieved?

You can use the [TEXT] prefix which is part of the output prefix functionality in Sejda. It is not in the documentation yet because version 2 of Sejda is still under development and subject to change.

So if you add link -p [TEXT] that should do the trick.

Summary

The [TEXT] prefix allows the file to be named according to the text used to splitbytext .

Example

The flag -p [TEXT] successfully named the output documents for a number of my projects. The following is an example of a successful splitbytext extraction performed in Windows:

sejda-console splitbytext -f input.pdf --top 514 --left 61 --width 75 --height 22 -p [TEXT] -o .\\outdirectory

FYI The text I was using to split the document was in the rectangle that began at points coordinates (x,y)=(514,61) [sic].

Thanks to Andrea Vacondio for their answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM