![]() ![]() This seems like such a basic, common task that I almost expected it to be provided by the OS rather than some third-party software, but apparently not.Īlthough not a requirement, it's a plus if it also runs on other OSes. As such, I must conclude that it's yet another broken tool which doesn't at all keep its promise to convert plaintext to PDF. Pandoc looked extremely promising, but after pouring countless hours into it, trying every "PDF converter engine" it supports, and a million different variations of the parameters, it simply would never honor my choice of font, instead falling back on some default font which completely messed up the resulting PDF. I have tried numerous open source tools for this over the years, although I used to be naive enough to think I could convert HTML with semi-advanced CSS into PDF - it seems laughable to me now - whereas my demands are infinitely smaller now, when I have the most basic kind of document in existence: plaintext! Must actually work! This last point is very important.It must run on the command line (no manual steps).txt with a proportional font (monospace/Courier New/Fixedsys/whatever) and fixed column width (80 chars) to be turned into a correct PDF document, so that it can be printed or shared as a PDF. As always, check the quality of the final to see if it's adequate for your needs.All I want is to turn a. If you go to the reference page, you will see a very large number of other choices for things such as image compression that you may wish to try out, but just using the /screen setting for an example 126KB file produced a 594KB PostScript file, then a final PDF of only 21KB, so only about 1/6 the size of the original. I think you will find that using the /ebook value will give a very good compression, but better resolution than using /screen. Choices are /screen, /ebook, /prepress, and /printer. file-extension (You might be wondering about the -headless option. The -dPDFSETTINGS option has a number of prebuilt subsettings which you will find on the above referenced webpage. Run this command to do a conversion: soffice -headless -convert-to file-format file-name. Ps2pdf -dPDFSETTINGS=/ebook -sOutputFile=myshrunkenfile.pdf myfile.ps ![]() Or, to avoid deleting your original myfile.pdf, you might put: VeryDOC provides PDF, Postscript, PS, PCL, HTML, EMF, WMF, DWG document converters. On the return trip, there are many settings to consider, but for simplicity's sake you might try using just one: Convert, create, and extract PDF content with PDF to Word Converter. Which will create myfile.ps, and will be larger than the original PDF. Use command-line scripting and watch folders to automate your PDF conversions or choose the API (DLL) for a programmatic interface. About the only setting in pdf2ps to consider is the language level, Let's say you have a file, myfile.pdf, created by Scribus. It is only in the conversion back to PDF that various settings allow for shrinking the size of the resulting file. My reading of the man page for pdf2ps and a web reference for ps2pdf suggest that the first step, converting to a PostScript file, does not involve any compression. The actual shrinkage is accomplished by the use of pdf2ps and ps2pdf, which are utilities which come with ghostscript. That article shows a Perl script, a rather long one at that, to accomplish the task. This is a simplified version of the method used in Web optimised PDF. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |