Forum Replies Created

Viewing 15 posts - 61 through 75 (of 1,410 total)
  • Author
    Posts
  • in reply to: not all attachments attached to resulting pdf
    #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
    in reply to: PD4ML .Net library not distorting 32bit-depth jpeg images
    #30103

    Sorry 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
    #30100

    Please 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
    #30054

    Initially 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
    #30079

    Play 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
    #30081

    <input type="signature"> should do the trick.

    in reply to: PD4ML cannot access Times New Roman Font
    #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
    #30089

    I 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
    #30075

    It 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.html

    Try 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
    #30066

    Unfortunately not. The porting will take a couple of months.

    in reply to: PDF merge failing with .net library
    #30064

    As 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
    in reply to: PD4ML cannot access Times New Roman Font
    #30086

    What does it print (to STDOUT or server’s log) if you switch debug mode on with pd4ml.enableDebugInfo()?

    in reply to: Free CJK Fonts
    #30047

    If 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

Viewing 15 posts - 61 through 75 (of 1,410 total)