Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26853

    I am trying to generate a PDF that contains dozens of small images. This greatly slows down my PDF generation, as PD4ML loads the images serially. Loading the HTML in a web browser is much faster, as all of the images the loaded in parallel. Is there a way to load the images in parallel inside of PD4ML?

    Thanks

    #29356

    No. PD4ML runs single thread to be compliant with J2EE requirements.

    If you convert HTMLs come from a single source, probably an image pre-fetch to PD4ML internal cache could help.

    #29357

    @PD4ML wrote:

    No. PD4ML runs single thread to be compliant with J2EE requirements.

    If you convert HTMLs come from a single source, probably an image pre-fetch to PD4ML internal cache could help.

    Do you have any example code of how this may be done?

    #29358

    The simplest way would be to generate an HTML index of the images:

    [language=xml:idlam7vh]

    …[/language:idlam7vh]

    and let PD4ML to convert it to PDF once.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.