Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Spawn a new PDF using Java Script within LC Designer

Avatar

Level 1

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