New
#1
free software to convert almost 50000 text fles to a single PDF file
Can someone suggest a free software to convert around 50000 text files to a single PDF file.
Can someone suggest a free software to convert around 50000 text files to a single PDF file.
Windows 10. Sorry, it may not be free, but if you already have it, it will cost you nothing.
You can do it in one go. Print to PDF in Windows 10 - Windows 10 General Tips Tutorials
Select all the files to be combined into a PDF file.
Press ctrl+P, and choose the "Microsoft Print to PDF" printer from the list of printers. Off you go. Make sure you have sufficient free disk space before you start.
That will print each text file to a separate .pdf (I've just tried it). You would need to combine the 50000 files into a single text file first if you want one .pdf.
One way to do that would be from a command prompt. Make a new sub-folder to hold the output file, then type all the files and pipe them to the single output file. Something like this:
The sub-folder is necessary, otherwise 'out.txt' will be copied to itself. You need it to be in a different directory.Code:mkdir TEMP for %F in (*.txt) do type "%F" >> TEMP\out.txt
Then print out.txt to the Microsoft PDF printer.
Sorry, but I did say I'd tried it. Selecting multiple .txt files then right-click and select Print as shown in that post just opens multiple Notepads, each of which immediately starts to print its own individual pdf. At no point do you get a chance to select 'multiple pages'.
Sorry I read it in a tutorial here with Shawn's thumb of approval, and thought it was good to go.
My first thought had been copy *.txt newfile.txt to append all files to a new file for printing, but came unstuck on printing to the PDF printer from the commandline. Then I thought to look in TF Tutorials. My mistake.
Can't even use shell:sendto in file explorer to send to the PDF printer, it doesn't appear on the sendto menu alongside send to fax recipient - which after all is another virtual printer.
Yes, I've noted that in the Tut, but the blanket statement had me fooled:
But it can be done: here I merge all the .ini files in Windows\system32 to a file called Big.ini (Ini files are text files), then
open the Big.ini file in Notepad and print to the Microsoft PDF printer to make a bigini.pdf file which is shown opened in Edge. The printing slowed and the dialog stopped responding after about 200 pages been printed. Maybe 50000 is a big ask!
note: Shawn has let me know he has edited the tutorial.
Last edited by Fafhrd; 25 Apr 2017 at 17:41.
I tried but at the time of printing, it is not printing all files in one go. Instead for each file it is asking to suggest a file name and then it save. It means for 50000 times I will have to name the file and then click save. The same thing happened with PDF Creator. If a single pdf with 50000 is made, I am o.k but even if 50000 pdf are made, I have no problem but the printing should be automated and the files name can remain same as the text files or anything random.