Page 1 of 1

Hot to merge folder content

Posted: Mon Dec 19, 2016 2:02 pm
by alcoscar
Hello!
I am looking for a feature to create a batch job but i cant found it (i don´t know if exist)
I have a folder that content other forders with images in each one.
Well, i want to merge the images of the each folder in one pdf file named like the folder name, it´s that possible? if yes, which action i need to select to do that?
Thanks in advance for your help!!!!

Re: How to merge folder content

Posted: Mon Dec 19, 2016 6:56 pm
by Willy Van Nuffel
... command-line switches in combination with PDF-XChange PDF-Tools ...

https://forum.pdf-xchange.com/ ... 70&t=27734

Please do NOT read my own post in that topic. It was not the expected answer.

Re: Hot to merge folder content

Posted: Mon Dec 19, 2016 11:12 pm
by Patrick-Tracker Supp
Hello alcoscar

As Willy mentioned this can be done in conjunction with PDF tools and command line attributes. You will find a list of command parameters here:
https://help.pdf-xchange.com/pdfxt6 ... ons_t.html

Thank you, Willy, for linking to that other topic!

Cheers to all!

Re: Hot to merge folder content

Posted: Tue Dec 20, 2016 1:41 pm
by alcoscar
Hi again to all.
In first time thanks for your quick answer.

I trying the option that you told me but doesn´t work like i expected.

I have one directory: (example:)

Images_to_convert
12-12-2016
img1.jpg
img2.jpg
img3.jpg
img4.jpg

14-12-2016
img1.jpg
img2.jpg
img3.jpg
img4.jpg
img5.jpg

16-12-2016
img1.jpg
img2.jpg
img3.jpg


well, when i launch the batch (including "split/merge"), the final result it´s only one file pdf with all the pages in (12), when i want 3 separate pdf files like:
12-12-2016.pdf (with 4 pages)
14-12-2016.pdf (with 5 pages)
16-12-2016.pdf (with 3 pages)

i try all the options in split/merge process with the same result.

Any idea?
Thanks in advance
Oscar

Re: Hot to merge folder content

Posted: Tue Dec 20, 2016 6:48 pm
by Willy Van Nuffel
I also executed some tests, and for as far as I can see, there are no options to create separate PDFs per group of files with a same date. It is even not possible to create a PDF per sub-folder (via one single command line).

If I understand it correctly, you would like to create one PDF per group of images with an equal create- or modification-date.

I do not know if you would be pleased with a work around where you create a separate folder for each group, like for example "Folder_01", "Folder_02", and so on and then create a *.bat file with following instructions:

"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool:showprog=no imagesToPDF "C:\Images\Folder_01"
"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool:showprog=no imagesToPDF "C:\Images\Folder_02"
"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool:showprog=no imagesToPDF "C:\Images\Folder_03"
...

Re: Hot to merge folder content

Posted: Tue Dec 20, 2016 7:39 pm
by Patrick-Tracker Supp
Hello Willy,

That looks like a good workaround!

alcoscar,

Does this solution work for you?

Cheers to you both! :)

Re: Hot to merge folder content

Posted: Wed Dec 21, 2016 7:52 am
by alcoscar
Hi Willy.
I create a batch file with your instructions and the result is only a pdf file with all the pages in crated into the first folder named "New Document From Images.pdf" (isn´t valid)

For example, i have the pages of a newspaper separated in folders named with the newspaper date.
The result must will be one pdf file with the newspaper pages for each diferent folder, and if its posible, the pdf file named as the content folder. (this part isnt important, it´s valid too if the pdfs are named with a secuential number).
Programs like PdfCompressor from Cvision do that.

regards

Re: Hot to merge folder content

Posted: Wed Dec 21, 2016 7:53 am
by alcoscar
some news
If in the batch file created change the flag with "YES":

"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool:showprog=yes imagesToPDF "f:\Images\Folder_01"
"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool:showprog=yes imagesToPDF "f:\Images\Folder_02"
"C:\Program Files\Tracker Software\PDF Tools V6\PDFXTools.exe" /RunTool:showprog=yes imagesToPDF "f:\Images\Folder_03"

When you launch the batch, the program shows a progress bar and when finish to process all the files of each folder, ask you to a destination to save a pdf file crated. This acction repeats many times as lines you have in the batch file.
Its posible to automate that?

RG

Re: Hot to merge folder content

Posted: Wed Dec 21, 2016 6:23 pm
by Willy Van Nuffel
1) Start PDF-Tools manually and click the "Create PDF from images" icon.
In the panel at the right, below "Save Documents":
- "File Location": select "use custom folder specified" and in the text box below it, indicate a destination folder
- "File name": leave this to "%[FileName]" or replace it by "NewsPaper_%[AutoNumber]" (for example)
- "When file already exists": select "Save new with other unique name".
This will make that every new PDF will get its own specific name and be saved in a particular folder (different from the folders where you have your images).

2) At my side, the batch file with one command-line per folder, works correctly, even when showprog=no.

Re: Hot to merge folder content

Posted: Thu Dec 22, 2016 10:55 am
by Tracker Supp-Stefan
Many thanks for the help Willy,

Let us know if this also works for you RG!

Season's greetings!
Stefan