问题描述:

I want to print out the image (which was loaded from server).

By using my JavaScript code.

This image was made for printing purpose and has resolution 300 dpi.

It was made from PDF (A4 paper size) it means that result image has big size in px.

Opened image in browser (means you paste image url into browser address bar) have two states (by default):

1. before click - image shows to fit on screen

2. after click - it become (scale) original size

well, if i click on print button (form drop down menu) some browsers print it as enlarge (2 state).

What Image should I have (x, y ? dpi ?) to print it out correctly with help browser ?

And how to achieve it to keep text readable ?


To test it I took pdf file from clean mac os installation - test.pdf (http://dl.dropbox.com/u/7017985/test.pdf)

convert it with help Ghostscript like that

gs -dSAFER -dBATCH -dNOPAUSE -r300 -sDEVICE=png16m -dTextAlphaBits=4 -dFirstPage=1 -dLastPage=1 -sOutputFile=stack.png ~/Downloads/test.pdf

in result i got png file with next dimension: 2550x3300.

If i'm trying to print it out from browser - I can't print it as it looks like in Preview APP.

Is there any way to print image from browser as is ? like from finder, explorer or any other software ?

相关阅读:
Top