Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Images not getting displayed in PD4ML

843840May 11 2009 — edited May 11 2009
hi,
I used PD4ML for generating PDF.
but in that generated PDF, Image which i want to display is not displayed. and it is working for other images can u plz help for that.
code ->
java.io.FileOutputStream fos = new java.io.FileOutputStream(f);
		//OutputStream sos = System.out;
		
		File fz = new File("C://output.htm"); //HTML Code of the template
		      java.io.FileInputStream fis = new java.io.FileInputStream(fz);
		      InputStreamReader isr = new InputStreamReader( fis, "UTF-8" );
		      
		      PD4ML html = new PD4ML();
		      html.setPageSize( new Dimension(450, 450) );
		      html.setPageInsets( new Insets(20, 50, 10, 10) );
		      html.setHtmlWidth( 750 );
		      html.enableImgSplit( false );
		      html.interpolateImages(true);
		      URL base = new URL( "file:C:/" ); //Used for images, css, etc.
		      // alternatively base can be specified with <base href="..."> tag
		      html.render( isr, fos, base );
Edited by: raj_pardeshi1986 on May 11, 2009 1:37 AM

Edited by: raj_pardeshi1986 on May 11, 2009 1:38 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2009
Added on May 11 2009
1 comment
437 views