qzind / qz-print

Archive for legacy qz-print versions (1.8, 1.9). See https://github.com/qzind/tray for modern versions.
Other
141 stars 101 forks source link

Print Html Horizontally #87

Closed haithem-rihane closed 8 years ago

haithem-rihane commented 9 years ago

Hi,

I'm using printHTML() function to print html div content on receipt printer 53mm, I have a problem when printing html content it print vertically so it cut information i would like to print it horizontally.

this is html content that i want to print (it contain 2 adjacent table and a text)

text
text -
text -
text -
text -
text -
```
text
text text text
text - text - text -
text - text - text -
text - text - text -
text - text - text -
text - text - - -
- - -
text
tresf commented 9 years ago

This probably won't work for a while due to our lack of landscape support with HTML content. Perhaps this one-off release will remedy the situation until we have proper HTML support finished (targeted for December 1st)

https://github.com/tresf/qz-print/releases/tag/v1.9.3-landscape

haithem-rihane commented 9 years ago

thx so i will be using pdf till the December 1st

haithem-rihane commented 9 years ago

is there line to add to PrintHTML function or automatically print landscape ?

thx

tresf commented 9 years ago

is there line to add to PrintHTML function or automatically print landscape ?

Can you rephrase this question? Are you talking about the one-off build? If so, it is here: https://github.com/qzind/qz-print/commit/5bb7c1c141fe071e065e4bf3c1c2fe2536aca5b1#diff-427d8ce4e50463c43a4eb480f855cd3fR143

-Tres

haithem-rihane commented 9 years ago

thx for clarification that waht i need just more info about (String m_orientationString) content text

tresf commented 9 years ago

@haithem-rihane we'll leave this bug open since it will eventually be addressed with our 2.0 release. Thanks for posting here!

tresf commented 9 years ago

Related #93

akberenz commented 8 years ago

HTML landscape printing is supported in 2.0

haithem-rihane commented 8 years ago

Thx guys great job !!!