Forum Replies Created
-
AuthorPosts
-
in reply to: Not embeddable color type. Reformatting image… November 13, 2013 at 13:34#29433
The message is not fatal, it only means the image cannot be embedded to PDF “as is”, and needs to be converted to an internal PDF image format. However, of course, a conversion takes CPU resources and a resulting PDF slightly grows.
PNG has some requirements in order to be embeddable: if should be 8 bit, not be interlaced and not have a transparency mask and translucency layer.
In the code below colorType==3 refers to PNG8, otherwise it is PNG24
... if ( bitDepth > 8 ) { if ( debug ) { System.err.println( "can not embed " + fileName + ". PNG should not have more than 256 colors. Reformatting image..." ); } unsupportedType = true; } if ( colorType > 3 ) { if ( debug ) { System.err.println( "can not embed " + fileName + ". Not embeddable color type. Reformatting image..." ); } unsupportedType = true; } if ( interlaceMethod > 0 ) { if ( debug ) { System.err.println( "can not embed " + fileName + ". Interlaced PNG are not embeddable. Reformatting image..." ); } unsupportedType = true; }in reply to: PDF rendering issue with display:block November 6, 2013 at 15:56#29420Close to end of the month. According to our plans it is Nov. 20, but it can take a week longer.
in reply to: Anybody have a way to include font-awesome icons in the PDF? November 6, 2013 at 14:25#29394You may specify font face via CSS or in
<font>tag – it foes not matter from PD4ML perspective.PD4ML needs to find a physical .TTF file by its font face name: to parse, to extract used glyphs and to embed the TTF subset to the resulting PDF.
in reply to: pdf renders garbled png image November 6, 2013 at 14:14#28327Unfortunately PD4ML does not support JavaScript and Canvas – so most probably that is the problem reason.
On the other hand if you generate the chart in a regular browser, extract the image as a base64-encoded data URL and pass the image to PD4ML to be converted to PDF – the trick may work.
In the case it would help if you send us a typical data URL, obtained with canvas.toDataURL(). We’ll check what could be done.
in reply to: PDF rendering issue with display:block October 30, 2013 at 08:23#29418You are right: inline-block does not solve the issue with background expanding. For the time being there is no workaround. We’ll check what could be done in the forthcoming release.
in reply to: PDF rendering issue with display:block October 29, 2013 at 12:17#29416PD4ML does not support display: block;, however display: inline-block; should work.
in reply to: pdf generated using pd4ml has to be converted to gray scale October 25, 2013 at 18:57#29415No, I’ve never seen such function in popular products/libraries.
in reply to: RTF and footnotes October 24, 2013 at 13:27#29411The feature is not supported by PD4ML yet.
in reply to: Pdf in color to gray scale (Pd4ml) October 24, 2013 at 13:06in reply to: pdf generated using pd4ml has to be converted to gray scale October 24, 2013 at 13:04#29413PD4ML does not support the feature.
If a desaturation is really needed, we could implement the feature on paid basis. Please contact sales pd4ml com
in reply to: table header color rendering issue in RTF October 22, 2013 at 12:40#29410We use Word2003 in test scenarios. We’ll check what is wrong with Word2010. It is quite unexpected, that the versions are not backward compatible.
in reply to: table header color rendering issue in RTF October 22, 2013 at 11:51#29409As I see in https://pd4ml.com/relnotes.htm we implemented the feature in v380fx2. So the only solution is to upgrade to the version or to any newer. I would recommend to upgrade to v385fx2 as recently we implemented many new RTF features and solved some bugs.
in reply to: table header color rendering issue in RTF October 22, 2013 at 11:26#29407The actual version of PD4ML (v385fx2) does support table cell background. See attached. (tested with MS Word, Wordpad and OpenOffice)
in reply to: Can’t Get Image Max-width and Max-Height to Work October 22, 2013 at 11:13#29402For the time being the CSS property is not supported. See https://pd4ml.com/css.htm
Please request the feature by support pd4ml com email.
in reply to: Images with # in URL Don’t Render October 22, 2013 at 11:09#29398PD4ML loads document resources (even from a local file system) using URL/URLConnection Java classes. If an image is referenced using a file system path, it is implicitly converted to an URL by an adding a “file:” protocol prefix.
‘#’ symbol has a special meaning in URLs. In your particular case ‘#’ and following it path info is simply ignored.
It is important to understand, that from HTML specification perspective your HTML code is erroneous. The specification explicitly requires to use an URL (not just a path) as an SRC attribute value:
<!ATTLIST IMG src %URL #REQUIRED -- URL of image to embed -- ...
The src attribute must be present, and must contain a valid non-empty URL potentially surrounded by spaces referencing a non-interactive, optionally animated, image resource that is neither paged nor scripted.
The major web browsers also accept paths to workaround a “popular” web authors’ mistake. (However with MS FrontPage it is even impossible to embed an image from a directory with ‘#’ in its name).
We could implement a support of ‘#’ in image paths, but probably a renaming of the dir to a web-friendly name is a better idea.
-
AuthorPosts
