In Windows systems, you can use DOC to Any Converter Command Line to convert rtf to pdf and set the pdf page width and pdf page height during one process, for DOC to Any Converter Command Line has been designed to help users convert Office files to pdf files singly or in batches with different properties of the objective files generally.
Here are the steps below to convert rtf file to pdf file and set the width and the height of the pdf page with DOC to Any Converter Command Line:
1. Run the operating environment of DOC to Any Converter Command Line
First, you need to know the reason why we need to start the running environment of DOC to Any Converter Command Line: for DOC to Any Converter Command Line can work based on the command line, and in Windows systems, the command line needs to work in a specific environment, it is essential to start the operating environment of DOC to Any Converter Command Line in your computer firstly, which is the command prompt window. And to run it in your computer, maybe you need to press “Window + R” in your computer, which is a hotkey to get the dialog box of “Run” in your computer, then you can get the dialog box of “Run”, and then please input “cmd.exe” or “cmd” and click “ok” in this dialog box, then the command prompt window is launched directly in your computer, where the current directory is as follow:
C:\Documents and Settings\admin>
2. Start DOC to Any Converter Command Line in the command prompt window
After the launching of the command prompt window, you can launch DOC to Any Converter Command Line directly in the command prompt window. To realize it, please drag and drop the program of “doc2any.exe” into the command prompt window, or just type the path of “doc2any.exe” in the command prompt window directly.
3. Edit the width and the height of the pdf file through the parameters
In the command prompt window, for DOC to Any Converter Command Line, if you want to edit the properties of the objective pdf file, you need to input the relative parameters in the command prompt window after you launch DOC to Any Converter Command Line. Thus, to edit the pdf page width and pdf page height, you need to type the following parameters into the command prompt window:
-width <int>: set the width of the objective file as xxx, which is the value of <int>;
-height <int>: set the height of the targeting file as xxx, which means <int> can not be skipped, which can be any value according to your will;
Here I set <int> as 1200 and 800 for the width and the height in the command prompt window, for example. Also there are other parameters for you to choose to edit other options of the pdf file in the command prompt window, which can be found on the official webpage of DOC to Any Converter Command Line from this link: https://www.verydoc.com/doc-to-any-options.html.
4. Add the rtf file and choose the destination folder for the targeting pdf file
To add the rtf file for the conversion in the command prompt window, you need to input the path of the rtf file in the command prompt window, or drag and drop the rtf file into the command prompt window, which also can generate a path automatically; to choose the destination folder for the pdf file, in the command prompt window, you just need to input a path as the objective path, after the adding of the source file in the command prompt window, which also can help you name the pdf file directly.
5. One click to start the process
To start the process in the command prompt window, please press “enter” in the command prompt window, then the process from rtf to pdf can be completed successfully. And if you feel a little confused, you can refer to the following command line:
f:\doc2any_cmd\doc2any.exe –width 1200 –height 800 d:\source1\abc.rtf d:\target1\abc.pdf<enter>
Jere <enter> is set to tell you it is essential to click “enter” through “<>”.
By now, if you are intersted in DOC to Any Converter Command Line, you can download its trial version from this link right now: https://www.verydoc.com/doc2any_cmd.zip, which is totally free! And if you want to know more information about DOC to Any Converter Command Line, please click the following link to visit the homepage of DOC to Any Converter Command Line: https://www.verydoc.com/doc-to-any-options.html. Thank you for reading this article here, and if you have any questions about this process from rtf to pdf with the specific pdf page width and pdf page height, please drop your precious opinion here, thank you for your support!