> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Roger Misteli
> Sent: Thursday, September 21, 2006 3:09 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] reduce size of printed data
> 
> I had a very similar problem with a 1300 printer. And yes, 
> the client had like 50 of them, so telling them to "buy 
> something that doesn't suck as much 
> as this crap" wasn't an option.
> However, we were printing the documents ourselfes with a 
> little Java program and the JPedal library and had to learn 
> the hard way, so to say. I don't 
> know exactly how Acrobat prints internally, and it largely 
> depends on the document itself (Type1 vs Type3 vs TTF, etc.), 
> but you need to understand 
> that printing a simple character "b" can be done in two ways, 
> basically:
> a) the smarter, but not always feasable way would be: 
> "drawString(Font font, Color bg, Color fg, int x, int y, 
> String "b")" (in Pseudo code, of course)
> b) less smart: Line 0, 0 - 0, 19. bezier .... line... stroke.. fill...
>

c) the character is rasterized and sent as a bitmap to the printer.

Paulo
 
> You see, you can either simply tell the print processor to 
> use a specific font, color, pattern, etc. and draw a 
> character at a specific location or 
> you can draw the character totally by yourself. if you have a 
> PDF with (I think) Type 3 fonts, you basically don't have a 
> PDF with a lot of text, but 
> only a PDF with a lot of drawing commands and not really text 
> anymore. Printing such a document CANNOT be done the easy way 
> and needs a lot of memory. 
> So it goes back to what document do you really have to print?
> You can also have a document with a 24bit background graphics 
> over the whole page. In the PDF size, this might also be a 
> small 100k PDF itself, but 
> when you print it (or display it) you need memory to display 
> that image. If you need to print the document, you need to 
> transfer the data to the 
> printer, etc. It really depends on your document.
> 
> Best regards,
> Rog
> 
> 
> tib wrote:
> > Roger Misteli <roger.misteli <at> abacus.ch> writes:
> > 
> >> Depends on the printer model you have. Very low end models 
> like hplj1200 or 
> > 1300 have very limited memory and
> >> very limited processing power. The 
> >> printer does not support the full PCL 5 or 6 standard and 
> the printer driver 
> > on the client machine is used to
> >> basically create bitmaps from the 
> >> missing features. Depending on the features you use, this 
> could be indeed 
> > completely translated into a bitmap.
> >> For such printers, there is not really a solution. You're 
> basically fuched. 
> > JPedal has a Java library that
> >> supports viewing and printing. They 
> >> introduced special print modes for PCL printers last year, 
> so you might have 
> > more success using their code.
> >> But the problem remains: Those low end HP 
> >> printers are, sorry, basically crap. The higher end models 
> with more memory 
> > are better suited for that task.
> >> Best regards,
> >> Rog
> > 
> > Thanks.
> > But the "machine pool" (printers) are not interchangeble. :-(
> > Bye :-)


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to