PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ Image as a theme for pdf file

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

    Hi All,

    I want to add a theme(image) as a background of pdf file. i have developed pdf related class & one jsp. It provides the jsp as a output in pdf file. That means, i got pdf file with white color as a background. But i need to use one image file as background color of pdf file. Already i tried it. i.e. i have set the background image for jsp file. But it didn’t add entire image file as background. Please help me. Thank u.

    -Satyaprasad

    #29261

    There is an API method intended for that:
    PD4PageMark.setPageBackgroundImageUrl(String);

    [language=java:3csh4kwr]PD4ML pd4ml = new PD4ML();

    PD4PageMark mark = new PD4PageMark();
    mark.setPageBackgroundImageUrl(“file:images/background.jpeg”);
    pd4ml.setPageFooter(mark); // or .setPageHeader(mark)[/language:3csh4kwr]

    Make sure HTML document itself does not define an opaque page background.

    #29262

    Ok,
    It is working in Java API.
    But I am using Tld in jsp. How can i reach it????????

    #29263

    You need to nest to

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

The forum ‘General questions / FAQ’ is closed to new topics and replies.