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
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Output Service REGARDING

Avatar

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile
adeivasigamani
Level 2

15-10-2015

Hi Folks,

The following link http://helpx.adobe.com/aem-forms/6/output-service.html gives info about generating PDF document in AEM, but I do not find the OutputService class in the jars that come along AEM 6 installation. 

Please let me know if any of you have tried creating PDF document in AEM without using a serviceclientfactory to connect to Adobe Livecycle ES4.

The Java API link given at http://helpx.adobe.com/aem-forms/6/javadocs/index.html, but not able to find a single example that uses these API to generate a PDF. 

Regards -

Ashok Deivasigamani

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 2
nitinn18425437
Level 2

Like

1 like

Total Posts

16 posts

Correct Reply

7 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 1
Level 2
nitinn18425437
Level 2

Like

1 like

Total Posts

16 posts

Correct Reply

7 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile
nitinn18425437
Level 2

15-10-2015

Hi Ashok,

     Sample code for using Output Service in AEM for generating PDF is on following page

     http://helpx.adobe.com/aem-forms/6/aem-document-services-programmatically.html

 

    Output Service API classes/interface can be found in Client SDK jar at this maven repository. http://repo.adobe.com/nexus/content/groups/public/com/adobe/aemfd/aemfd-client-sdk/1.0.2/

 

 Thanks

Nitin

Answers (4)

Answers (4)

Avatar

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile
adeivasigamani
Level 2

15-10-2015

@snacdonald2008, I did not get your last post on the thread.

Regards -

Ashok Deivasigamani

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-10-2015

This one the list for an end to end community AEM article. 

Avatar

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile
adeivasigamani
Level 2

15-10-2015

Hi Nitin,

Thanks for the guidance, Now after building the code and deploying the same in AEM, I am facing the following issue.

I had placed by XDP file in the the following path in dam /content/dam/formsanddocuments/NedbankInc/ and set the same as content root for the PDF options object before calling the generatePDFOutput method.

But I get the following exception

Caused by: java.io.FileNotFoundException: \content\dam\formsanddocuments\NedbankInc\CurrentAccountForm.xdp (The system cannot find the path specified)

Regards -

Ashok Deivasigamani

Avatar

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 10
Level 2
adeivasigamani
Level 2

Likes

4 likes

Total Posts

79 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile
adeivasigamani
Level 2

15-10-2015

Hi Folks,

The adobe helpx at http://helpx.adobe.com/aem-forms/6/overview-aem-document-services.html identifies four services available in the Output services namely generatePDFOuput2, generatePrintedOutput2, sendToPrinter, transformPDF. But the OutputService java doc available at http://helpx.adobe.com/aem-forms/6/javadocs/com/adobe/fd/output/api/OutputService.html does not have the above services but instead have 6 other methods, 2 for generating PDF, 2 for generating Printed Output(Post Script, etc) and 2 for generating (1 for pdf and 1 for printed) documents in batch.

I had used generatePrintedOutput(Document inDoc, Document data, PrintedOutputOptions printedOutputOptions)  and generated the post script, I had attached the code for your reference. 

I have not understood the use for

setXci(Document xci) in the PrintedOutputOptions API, Also how to send the generated Post Script to a local or networked printer, is there a API to set the printer parameters.

 

Regards -

Ashok Deivasigamani