sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.72k stars 1.73k forks source link

Tried to reduce aliasing but it didn't work. I used the 3.5.2 library 【SumatraPDF-settings.txt】 #4630

Open bianbiandashen opened 4 days ago

bianbiandashen commented 4 days ago

C:\Users\bianlian\AppData\Local\Temp\sm -print-to "DASCOM TL-200Z" -print-settings 1-3,A4,simplex,shrink,monochrome,1x C:\Users\bianlian\AppData\Local\Temp\1_1.pdf If this is the command line, I think SumatraPDF-settings.txt will be generated by default in C:\Users\bianlian\AppData\Local\Temp, but I adjusted the information in SumatraPDF-settings.txt such as: BitmapInterpolation = true GraphicsAntiAlias = 2 TextAntiAlias = 2 Tried to reduce aliasing but it didn't work. I used the 3.5.2 library

GitHubRulesOK commented 4 days ago

@bianbiandashen SumatraPDF would NOT normally be in the users temp folder C:\Users\bianlian\AppData\Local\Temp\sm it would normally look like this image

SumatraPDF-settings.txt has NO graphics variables BitmapInterpolation = true GraphicsAntiAlias = 2 TextAntiAlias = 2

For printing

"........\SumatraPDF.exe" -print-to "DASCOM TL-200Z" -print-settings 1-3,A4,simplex,shrink,monochrome,1x "C:\Users\bianlian\AppData\Local\Temp\1_1.pdf"

That looks about right, however SumatraPDF in Windows is not the best way to print mono and PDF should not be used with thermal printers. If you MUST use Windows with PDF then use Acrobat Edge (or GhostScript) with the better drivers from https://www.seagullscientific.com/downloads/printer-drivers/dascom-tl-200z/

bianbiandashen commented 3 days ago
image

How can I reduce the jagged effects of printing without changing libraries? I am now using C:\Users\bianlian\AppData\Local\Temp\sm -print-to "DASCOM TL-200Z" -print-settings 1-3,A4,simplex,shrink,monochrome,1x C:\Users\bianlian\AppData\Local\Temp\1_1.pdf

GitHubRulesOK commented 3 days ago

PDF is for Laser printers PDF is not pixel barcodes or vector lines (those are for laser printers)

MONO printer has NO ANTI ALIAS, NO INTERPOLATION on off on off on off on off = ▀■▀■▀■▀■▀■▀■▀■▀■

Barcodes do not need grey tones they need on and off but using the print head language direct to be pixel perfect Language ZPL, EPL and TSPL programming @ 203 dpi (dots per inch) Learn More ZPL language = ^XA GRF (NOT %PDF-1.#) EPL = NOT PDF TSPL = NOT PDF

image

Adobe Acrobat CONVERT PDF to Seagull ZPL drivers will be the Best GhostScript CONVERT PDF to Seagull ZPL drivers will be the next best PDF browser with SEAGULL driver CONVERT screen pixels to ZPL = OK ish

bianbiandashen commented 15 minutes ago

So the conclusion is that non-laser printers are not suitable for direct printing using Sumatra PDF, right?