Printing to "vector" PDF #4853
-
Hi everyone. So, while I was tempted to blame W11, MS PDF printer, etc, it looks that at the end it is a behaviour of the applications themselves. So, my question, is there any way to configure SumatraPDFReader so to output vectorial stream for the PDF printers to create a true PDF non-image output? TIA |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
Not really, the old XP vector printing before MS Print to PDF was flaky but if you want to try that, it was last included in version 3.0. SumatraPDF is built on MuPDF rather than its printing sister app GhostScript. The other long time Print format development team is Adobe with specialist drivers to manage PDF print to other devices. |
Beta Was this translation helpful? Give feedback.
-
OK SumatraPDF can call external viewer with filename and page number. Lets break down your requirement. SumatraPDF is a PDF page viewer you use to read pages and decide you want a new file with current page. Say 6
Previously have used similar to convert PDF pages to images Ok that is 2 distinct actions and there are several methods
There are as usual advantages and disadvantages with both of those 2 but generally quicker than other methods. The problem with second method is the overheads in resources may create larger results than the first method might. But the advantage over a list is, you visually can instantly see those you may not want or are repeats. So we go with a listing (that actually would suite GhostScript perfectly as it can merge pages via a text list but may need edits in the listing) and others too can be made to work likewise. SumatraPDF can Echo the name/numbers as text for example you use an icon or key to call a cmd file or echo direct. along the lines of that is the easy part and similar to sending just unwanted filenames to be deleted later on exiting SumatraPDF file locking. The more complex part of sending the list to one of your choice applications is more custom and needs to consider the order of commands and pages both of which are more to your liking? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
(sorry for the bold typography, I was unble to find out why there are there, I cannot remove it...) Thank you for your time to answer me, you certainly took a lot of effort to help me. As one good turn deserves another I felt enticed to provide this feedback - please do not see it as negative criticism but otherwise! I will start saying that you have been brilliant in finding a way to extend SumatraPDF very good but very focused/constrained functionality by the use of the external viewers functionality. I am afraid you are "fighting" a very energy consuming "battle" to achieve that end. Certainly I feel that SumatraPDF is not conductive of any deviation to be "just" a pure (although very good one) viewer. I had to investigate a lot to understand your information (no compliant). You know, none of the versions I tried from SumatraPDF show the "Save as PDF" in the File dialogue, so I was in search of how to have that there. I have now figured that this is the result of using the external viewers way, and I had to understand before that I had to set up your external viewer thing before. To understand your reply I had to read the answer several times, then I googled a bit and found https://github.com/GitHubRulesOK/SumatraPDF-Plus then I felt I needed to understand your plug in and see how to fit your answer with the plugin thing. Some references for anyone reading this in the future:
(I am sure there are many more along the forum(s) but with those one can manage) So, to test your approach I did ======================================= STEP1Set up SumatraPDF to be able to create the list. This involves going to settings/advance options and replacing the standard ExternalViewers [ by ExternalViewers [ NOTE: user has to adjust above to put their userpath where they wish to have their pagelist.txt. Step TWOIf one is going to use Ghostcript (there are many other alternatives...)
|
Beta Was this translation helpful? Give feedback.
-
@GitHubRulesOK Finally, I will use SumatraPDF + GitHubRulesOK solution! (that it is executing arbitrary windows commands using the external viewer functionality). Certainly not easy to set up but quite acceptable and fluid to be used after all. I set up three commands using the "external viewers" trick. Prepare: add to settings/advanced options (for reference, if needed, read https://www.sumatrapdfreader.org/docs/Customize-external-viewers ) Use: When ordered to output PDF, a cmd window with ghostscript giberish will pop up (did not find a way to send errors/warnings to a file), read if all ok or errors or warnings. The you will have to kill. If no errors a "outputfile.pdf" will be created in same folder as your original PDF Enjoy! |
Beta Was this translation helpful? Give feedback.
-
Notice to seafarers sumatra external viewers interface seems to have its character ... beware! I believe cmd.exe can be used instead of c:\windows\system32\cmd.exe Did not find a reference for /r switch in cmd.exe /r (seems to do same as /c) Beware of this: [ In my case, that one deletes BOTH the pagelist.txt and the original PDF !!!
|
Beta Was this translation helpful? Give feedback.
Not really, the old XP vector printing before MS Print to PDF was flaky but if you want to try that, it was last included in version 3.0.
SumatraPDF is built on MuPDF rather than its printing sister app GhostScript.
Thus historically the only way to print Pdf would be using GhostScript which I think has similar issues with WinPrint via MS Print as PDF since it is designed to PDF write vectors without printing OR send PDF vectors to vector printers.
The other long time Print format development team is Adobe with specialist drivers to manage PDF print to other devices.