Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bianbiandashen opened this issue Nov 14, 2024 · 5 comments

Comments

@bianbiandashen
Copy link

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
Copy link
Collaborator

GitHubRulesOK commented Nov 14, 2024

@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
Copy link
Author

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
Copy link
Collaborator

GitHubRulesOK commented Nov 14, 2024

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
Copy link
Author

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

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Nov 18, 2024

@bianbiandashen
SumatraPDF could print reasonably well if you resolve all the downstream problems with windows print as images.
Windows drivers will often be poor match for metric pixilation. Many thermals use traditional FAX (Facsimile) pixel spacing say 204 dpi while laser or inkjet trend to use imperial 300/600 dpi. So the drivers need to marry their output from Microsoft based imaging to printer internal spacing.
Acrobat and GhostScript with Seagull drivers should do that perfectly well (but vector PDF is not recommended for thermals)
Some users have found they can space out the pixels for printing and use SumatraPDF with Seagull drivers and get OK results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants