Expand my Community achievements bar.

Spawn a new PDF using Java Script within LC Designer

Avatar

Former Community Member

I am trying to spawn a new PDF file to be created from an existing PDF using Java Script within the LC designer

I have this example but I can't get it to work

function createPdf()
{
    pdf = pdf$();
    pdf.addText('Hello World');
    pdf.writeToFile('c:/temp/hello_world.pdf');
    window.open('file://c:/temp/hello_world.pdf');
}

Is it possible to create a PDF like this within LC Designer?

0 Replies