PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: RTF Rendering of PNGs
   PostPosted: 25 Jul 2011, 21:39 
Hi. I'm working with the Java API for PD4ML, version 3.7.1b4
When I put a PNG image tag with a file URL in some HTML content:

Code:
<html>
<head></head>
<body>
<img src="file:///home/jesse/test.png">
</body>
</html>


I can render the document as a PDF just fine. The image shows up and all is well.

When I try rendering the document as an RTF, the image does not show up. No trace of it exists. Not even a box where an image ought to go.

Also:
- When I look at the raw RTF code, the \pict\pngblip tags exist and the data for the image exists.
- JPEG images are fine in both formats.


  Subject: Re: RTF Rendering of PNGs
   PostPosted: 25 Jul 2011, 21:53 
PD4ML supports 2 types of RTF output: RTF and RTF_WMF. The second one forces all images to be converted to WMF format for better RTF viewer compatibility. For instance, MS Wordpad is able to render WMF images only. MS Word, as a rule, is able to show JPEG, PNG etc.


  Subject: Re: RTF Rendering of PNGs
   PostPosted: 25 Jul 2011, 23:46 
Worked great! You guys are the best



[Reply]     [ 3 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share