add image to pdf

Home Forums PDF24 Online PDF Converter API add image to pdf

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #554
    ems
    Member

    Hello,

    Is it possible to add an image to a .pdf document through the javascript api? I'm trying something like this, but it is not working:

    ...

    var pdfContent = "
    ";

    pdfContent += "";

    element.setBody(pdfContent);

    doc.addElement(element);

    doc.create();

    ...

    Thanks

    #1228
    pdf24
    Member

    If the referenced image is reachable and not password protected then it should work.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.