Forum Replies Created
-
AuthorPosts
-
in reply to: not all attachments attached to resulting pdf October 13, 2017 at 14:58#30105
Can you please create and send to support pd4ml com a set of input files (src HTML, attachment file) and a conversion result to illustrate the issue?
in reply to: <pd4ml:page.header>: Header Height October 13, 2017 at 14:56in reply to: PD4ML .Net library not distorting 32bit-depth jpeg images October 11, 2017 at 16:32#30103Sorry the analyze has taken that long.
We finally found the problem reason and prototyped a solution.
In fact the JPEG images you provided are not 32bit-depth, but 4-component CMYK images (8 bit per color component).
As the image type is mostly used in typography and not natively supported by Java, we did not implement a support for them yet.
An improved JPEG parsing and CMYK color space support implementation may take some time.
Is it really critical for your application to support the image types or a converting of your (probably few) existent CMYK JPEGs to RGB is also a solution?
A “semi-solution” for the issue to convert CMYK to RGB by PD4ML on a fly is unfortunately not an option as Java does not support them and fails with
sun.awt.image.ImageFormatException: Unsupported color conversion request at sun.awt.image.JPEGImageDecoder.readImage(Native Method) at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:141) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:269)
Adding a dependence to capable JAI library is undesired.
in reply to: PD4ML .Net library not distorting 32bit-depth jpeg images October 4, 2017 at 15:34#30100Please send an image sample to support pd4ml com. We’ll check if the type of images can be supported.
in reply to: Does PD4ML.Net support Bootstrap and other styling libraries October 4, 2017 at 15:32#30054Initially PD4ML was seen not as a HTML capture, but PDF authoring tool, which uses a subset of HTML/CSS to define document layout. As our current HTML renderer has a number of limitations, we do not expect it will convert an arbitrary web page perfectly – it expects the source HTML is designed or refined bearing in mind PD4ML.
The situation is going to change with forthcoming PD4ML v4 release. Unfortunately a .NET port from Java will take some time and be published later.
in reply to: fill al width in Landscape September 25, 2017 at 13:57#30079Play with htmlWidth attribute value to impact the HTML->PDF mapping scale factor:
<pd4ml:page.break pageFormat="842x595" htmlWidth="1000">
(Hopefully it is clear the tag takes effect only for pages follow it)If the scale has to be constant you would need to define HTML layout, bearing in mind a page format (available width) may change from page to page.
in reply to: Signature Fields September 25, 2017 at 13:48#30081<input type="signature">should do the trick.in reply to: PD4ML cannot access Times New Roman Font September 18, 2017 at 11:18#30092> Does it store the fonts files into temp folders some where on the linux server or does it load it into RAM memory and then tries to fetch it from there?
PD4ML loads the resources via the class loader:
URL url = Thread.currentThread().getContextClassLoader().getResource(resourcePath); if (url == null) { url = ClassResourceProvider.class.getClassLoader().getResource(resourcePath); } if (url == null) { ClassLoader cl = callingClass.getClassLoader(); if (cl != null) { url = cl.getResource(resourcePath); } }In some environments the above code does not work as expected. For example when the resource JAR is placed to WAR, EAR etc the classloader may fail with a TTF load. Usually appserver configuration adjustment (something like “unpack JARs to work directory”) helps.
in reply to: PD4ML cannot access Times New Roman Font September 11, 2017 at 12:03#30089I suspect the issue is caused by font caching. Could you perform two experiments: disable caching (1) and clear cache after each conversion (2) as described in the thread:
pdf-generation-troubleshooting-f4/pd4ml-cache-enable-false-t539.html
Does #1 or #2 help?
in reply to: Images with HTTPS does not work anymore September 8, 2017 at 07:06#30075It is unlikely the changes in HTTPS functionality depend on a switch to new CSS cascading engine.
In order to find the issue reason I would recommend to do the following:
PD4ML supports so-called custom resource loaders.
pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.htmlTry to implement a debug version of HTTPS loader. I’ve attached our standard SSL loader implementation, which could give you some implementation ideas.
Please take into account: WebSphere and Weblogic implement their own versions of HTTPS protocol, and the implementations are not derived from the standard API.
in reply to: PDF merge failing with .net library September 8, 2017 at 06:50#30066Unfortunately not. The porting will take a couple of months.
in reply to: PDF merge failing with .net library September 7, 2017 at 10:30#30064As PD4Document interface is not ported to .NET yet, for the time being the only solution is to use Java API for doc merging.
We’ll start porting of the doc merging functionality to .NET only after PD4ML v4 Java is released (in 2-4 weeks)
in reply to: Free CJK Fonts September 6, 2017 at 20:21#30049The correct link: https://pd4ml.com/examples.2017.05.zip
in reply to: PD4ML cannot access Times New Roman Font September 6, 2017 at 11:27#30086What does it print (to STDOUT or server’s log) if you switch debug mode on with pd4ml.enableDebugInfo()?
in reply to: Free CJK Fonts September 6, 2017 at 08:19#30047If the fonts are not listed in the .properties file, it seems they are still not in a compatible format. Did you try to convert them with a mentioned above Python script?
Q2 more debug info will be available in forthcoming PD4ML v4
Q3, Q4 it is possible. https://pd4ml.com/examples.zip contains chinese_ttf sample, which illustrates how to do that.See also https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
-
AuthorPosts
