You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Purvesh Vora <pu...@patni.com> on 2002/07/19 08:30:00 UTC

Printing pdf problem

Hi All,
I am successfully able to generate the pdf. The size of each pdf is
1mb-15MB. 
After generation I am storing it in a file on the server. I am using java
class to print the pdf. Upto 10mb its printing properly. But after that it
gives blank page. 
I am attaching the code herewith.
Can you please tell me if there is any better way to do the same. 
 
Thanks & Regards
Purvesh Vora



AW: Printing pdf problem

Posted by Reichert Bernard <va...@gmx.net>.
HI.
Sorry I can't guide you. I only have experience in c++.
But the main Idea is to catch the stream to the printer and slow it down.
Or to read the PDF you self and print it slower this means send it page per
Page 1 of 1 think this should be possible somehow

		-----Ursprüngliche Nachricht-----
		Von: Purvesh Vora [mailto:purvesh.vora@patni.com] 
		Gesendet: Friday, July 19, 2002 10:39 AM
		An: fop-user@xml.apache.org
		Betreff: RE: Printing pdf problem

		Hi Reichert Bernard
		you are right.. I am trying to optimize the same code(Also
in terms of memory). 
		If anybody has the best way to do it.. Like RandomAccessFile
should be replaced by Fileinputstream or... else please guide me.
		Thanks
		Purvesh
			 -----Original Message-----
			From: 	Reichert Bernard [mailto:valen16@gmx.net] 
			Sent:	Friday, July 19, 2002 4:01 PM
			To:	fop-user@xml.apache.org
			Subject:	AW: Printing pdf problem

			I think it is not a fault of your source but your
printer only has about 10 MB or less Memory. So
			You have to give ôut a stream of data to your
printer. And not sent everything at all!!
			Ciao

				-----Ursprüngliche Nachricht-----
				Von: Purvesh Vora
[mailto:purvesh.vora@patni.com] 
				Gesendet: Friday, July 19, 2002 8:30 AM
				An: Fopuser
				Betreff: Printing pdf problem

				Hi All,
				I am successfully able to generate the pdf.
The size of each pdf is 1mb-15MB. 
				After generation I am storing it in a file
on the server. I am using java class to print the pdf. Upto 10mb its
printing properly. But after that it gives blank page. 
				I am attaching the code herewith.
				Can you please tell me if there is any
better way to do the same. 
				 < Datei: CodeForPrintingPdf.txt >> 
				Thanks & Regards
				Purvesh Vora



RE: Printing pdf problem

Posted by Purvesh Vora <pu...@patni.com>.
Hi Reichert Bernard
you are right.. I am trying to optimize the same code(Also in terms of
memory). 
If anybody has the best way to do it.. Like RandomAccessFile should be
replaced by Fileinputstream or... else please guide me.
Thanks
Purvesh
>  -----Original Message-----
> From: 	Reichert Bernard [mailto:valen16@gmx.net] 
> Sent:	Friday, July 19, 2002 4:01 PM
> To:	fop-user@xml.apache.org
> Subject:	AW: Printing pdf problem
> 
> I think it is not a fault of your source but your printer only has about
> 10 MB or less Memory. So
> You have to give ôut a stream of data to your printer. And not sent
> everything at all!!
> Ciao
> 
> 		-----Ursprüngliche Nachricht-----
> 		Von: Purvesh Vora [mailto:purvesh.vora@patni.com] 
> 		Gesendet: Friday, July 19, 2002 8:30 AM
> 		An: Fopuser
> 		Betreff: Printing pdf problem
> 
> 		Hi All,
> 		I am successfully able to generate the pdf. The size of each
> pdf is 1mb-15MB. 
> 		After generation I am storing it in a file on the server. I
> am using java class to print the pdf. Upto 10mb its printing properly. But
> after that it gives blank page. 
> 		I am attaching the code herewith.
> 		Can you please tell me if there is any better way to do the
> same. 
> 		 < Datei: CodeForPrintingPdf.txt >> 
> 		Thanks & Regards
> 		Purvesh Vora
> 
> 

AW: Printing pdf problem

Posted by Reichert Bernard <va...@gmx.net>.
I think it is not a fault of your source but your printer only has about 10
MB or less Memory. So
You have to give ôut a stream of data to your printer. And not sent
everything at all!!
Ciao

		-----Ursprüngliche Nachricht-----
		Von: Purvesh Vora [mailto:purvesh.vora@patni.com] 
		Gesendet: Friday, July 19, 2002 8:30 AM
		An: Fopuser
		Betreff: Printing pdf problem

		Hi All,
		I am successfully able to generate the pdf. The size of each
pdf is 1mb-15MB. 
		After generation I am storing it in a file on the server. I
am using java class to print the pdf. Upto 10mb its printing properly. But
after that it gives blank page. 
		I am attaching the code herewith.
		Can you please tell me if there is any better way to do the
same. 
		 < Datei: CodeForPrintingPdf.txt >> 
		Thanks & Regards
		Purvesh Vora