Page 2 of 3 FirstFirst 123 LastLast
  1.    25 Apr 2017 #11
    Join Date : Oct 2015
    Posts : 245
    Windows 10
    Thread Starter

    Quote Originally Posted by Bree View Post
    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:

    Code:
    mkdir TEMP
    for %F in (*.txt) do type "%F" >> TEMP\out.txt
    The sub-folder is necessary, otherwise 'out.txt' will be copied to itself. You need it to be in a different directory.

    Then print out.txt to the Microsoft PDF printer.
    I am not competent enough for cmd. Can you please attach screenshot of cmd commands.
      My ComputerSystem Spec
  2.    26 Apr 2017 #12
    Join Date : Dec 2015
    Posts : 5,873
    Windows10

    Drag all text files to one directory eg c:\text

    Open command prompt

    cd \text

    copy *.txt text.dat
    exit

    Then load text.dat into notepad or word etc. and print file to pdf.
      My ComputerSystem Spec
  3.    26 Apr 2017 #13
    Join Date : Oct 2015
    Posts : 245
    Windows 10
    Thread Starter

    Quote Originally Posted by Bree View Post
    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:

    Code:
    mkdir TEMP
    for %F in (*.txt) do type "%F" >> TEMP\out.txt
    The sub-folder is necessary, otherwise 'out.txt' will be copied to itself. You need it to be in a different directory.

    Then print out.txt to the Microsoft PDF printer.
    I am not competent enough to understand the codes but somewhere I think you want me to first combine all text files into a single Text file. Sir, I already have a single Text file which I have splitted into 50000 text files because these 50000 files are one page letters which I need to print randomly as per my search criteria. In notepad I can not select and print the required letter and I have to first copy the required letter to another notepad to finally print that particular letter. In a combined pdf, I can select the page to print. Hope I am able to explain to you. Thanks
      My ComputerSystem Spec
  4.    26 Apr 2017 #14
    Join Date : Oct 2015
    Posts : 245
    Windows 10
    Thread Starter

    Quote Originally Posted by cereberus View Post
    Drag all text files to one directory eg c:\text

    Open command prompt

    cd \text

    copy *.txt text.dat
    exit

    Then load text.dat into notepad or word etc. and print file to pdf.
    Thanks for the details but somewhere I think you want me to first combine all text files into a single Text file. Sir, I already have a single Text file which I have splitted into 50000 text files because these 50000 files are one page letters which I need to print randomly as per my search criteria. In notepad I can not select and print the required letter and I have to first copy the required letter to another notepad to finally print that particular letter. In a combined pdf, I can select the page to print. Hope I am able to explain to you. Thanks
      My ComputerSystem Spec
  5.    26 Apr 2017 #15
    Join Date : Aug 2016
    S/E England
    Posts : 4,488
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by sam9 View Post
    ...these 50000 files are one page letters which I need to print randomly as per my search criteria. In notepad I can not select and print the required letter and I have to first copy the required letter to another notepad to finally print that particular letter. In a combined pdf, I can select the page to print. Hope I am able to explain to you. Thanks
    So your problem is not really how to make a combined pdf, but how to print an individual page out of the 50000. Neither Notepad or Wordpad support page breaks, which is what you'd need to be able to have each letter on a single page. A plain text document is not really suitable for what you want to achieve.

    If you have Microsoft Word you could insert a page break between each letter. If you do not have Word, then Libre Office (or Open Office) is free and includes Writer, their equivalent of Word.
      My ComputersSystem Spec
  6.    26 Apr 2017 #16
    Join Date : Oct 2015
    Posts : 245
    Windows 10
    Thread Starter

    Quote Originally Posted by Bree View Post
    So your problem is not really how to make a combined pdf, but how to print an individual page out of the 50000. Neither Notepad or Wordpad support page breaks, which is what you'd need to be able to have each letter on a single page. A plain text document is not really suitable for what you want to achieve.

    If you have Microsoft Word you could insert a page break between each letter. If you do not have Word, then Libre Office (or Open Office) is free and includes Writer, their equivalent of Word.
    Yes, you are right. I have office 2016. Can you please guide how to open this single text file of 50000 letters with MS world and insert page break between each letter. Though each letter can come on a single page but number of lines in each letter can differ. But one thing is there that all letters start with a specific world and also ends with another specific word. Thanks
      My ComputerSystem Spec
  7.    26 Apr 2017 #17
    Join Date : Aug 2016
    S/E England
    Posts : 4,488
    10 Home x64 (1709) (10 Pro on 2nd pc)

    To open in Word, right-click on the text file and choose 'Open with..' then select Word.

    In Word, at the end of each of your letters insert a Page Break. I don't have Word 2016, but in Word 2010 it's on the 'Insert' tab. You'll then have to save it in a format that supports page breaks, .rtf, .docx .odt or even .pdf will do.
      My ComputersSystem Spec
  8.    26 Apr 2017 #18
    Join Date : Oct 2015
    Posts : 245
    Windows 10
    Thread Starter

    Quote Originally Posted by Bree View Post
    To open in Word, right-click on the text file and choose 'Open with..' then select Word.

    In Word, at the end of each of your letters insert a Page Break. I don't have Word 2016, but in Word 2010 it's on the 'Insert' tab. You'll then have to save it in a format that supports page breaks, .rtf, .docx .odt or even .pdf will do.
    I have 50000 letters. It means breaking 50000 times. It is practically a huge task which is not possible for me. Any other solution.
      My ComputerSystem Spec
  9.    26 Apr 2017 #19
    Join Date : Aug 2016
    S/E England
    Posts : 4,488
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by sam9 View Post
    ...practically a huge task which is not possible for me. Any other solution.
    Only if each letter ends (or starts) with a unique word or phrase, such as your signature or name. Then you could use 'Replace all' in Word to replace the phrase with the same phrase, but with a manual page break added. 'Find and Replace' has a 'Special' button that allows you to put a Page Break in the replacement string.

    If there is such a word, but it occurs elsewhere too, you can still use 'Find and Replace', but you'd have to click 'Replace' for each page break you want, and 'Find next' when the word occurs in the middle of a letter.
      My ComputersSystem Spec
  10.    26 Apr 2017 #20
    Join Date : Oct 2015
    Posts : 245
    Windows 10
    Thread Starter

    Quote Originally Posted by Bree View Post
    Only if each letter ends (or starts) with a unique word or phrase, such as your signature or name. Then you could use 'Replace all' in Word to replace the phrase with the same phrase, but with a manual page break added. 'Find and Replace' has a 'Special' button that allows you to put a Page Break in the replacement string.

    If there is such a word, but it occurs elsewhere too, you can still use 'Find and Replace', but you'd have to click 'Replace' for each page break you want, and 'Find next' when the word occurs in the middle of a letter.
    Thanks, I will try this and will let you know.
      My ComputerSystem Spec

 
Page 2 of 3 FirstFirst 123 LastLast


Similar Threads
Thread Forum
Why so much dishonesty - Free download is NOT free software
Hi there Why can't people be more honest on their websites -- as well as making it harder and harder to find REAL downloads without confusing extra offers / links to other programs with the real link buried deep down in an easy to miss website -...
Software and Apps
Free file backup software
Hi, Can anyone suggest a good free third party software for file backup.....? I googled it, but it seems that some free tools do not work well with W10. I have Macrium and use it for Imaging/Cloning, but the free version does not offer file...
Backup and Restore
convert wim file to vdh
I have several custom wim files each containing bootable windows 7 images plus applications how do I convert these to a format to run as virtual PC's in VMware or Virtual box. There are many solutions out there (notably using a convert-windowsimage...
Installation and Upgrade
CUE Tools - convert CUE file to tracks or tracks to single audio file
Hi there This old program still works in W10. If you want to convert a load of tracks to a single audio file or you have a .cue file with say .ape / .mp3 or whatever and you want to convert it back into Tracks again then this program CUETOOLS...
Software and Apps
Free OCR: Turn a picture of text into real text without spending a dim
Free OCR: Turn a picture of text into real text without spending a dime | PCWorld
Software and Apps
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:48.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums