Problem generating a pdf-file from Word document with web services

168 views
Skip to first unread message

malin_erika

unread,
Jul 9, 2010, 9:27:33 AM7/9/10
to Adobe LiveCycle Developers
Hi,

I am running this example to generate pdf-file from Word document
using web services: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000090.html

I use AdoveLivecycle 8.2 and .NET 3.5 (C#). The wordfile is placed on
my computer and AdobeLiveCycle is installed (by another person) at a
server. I can get Html to Pdf to work, so I guess the web service is
ok.

This is the error message I get when running the code:

Error: ALC-PDG-1000-000:
com.adobe.livecycle.generatepdf.client.ConversionException: ALC-
PDG-001-000-Conversion failed because of an exception. An unexpected
exception while resolving a new connection to an Adobe Service. Caused
by: java.lang.reflect.UndeclaredThrowableException: An unexpected
exception while resolving a new connection to an Adobe Service.
at .......

Any suggestions on how to fix this and what can be wrong?

David Liao

unread,
Jul 9, 2010, 12:37:18 PM7/9/10
to live...@googlegroups.com
I would suggest you do the following:

1.  Go to AdminUI (http://localhost:8080/adminui) > services > PDF Generator Service > Create a PDF to see if you can convert that word document to PDF manually.

2.  word -> pdf conversion requires office to be installed and configured, and PDF Generator Service to set up for native application support.  Was this done?

Thanks,

David


--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.




--
David Liao
www.ensemble.com

Hemant

unread,
Jul 10, 2010, 12:55:34 AM7/10/10
to Adobe LiveCycle Developers
Hi,

According to the Error there are three settings to be checked.

1) Microsoft Office registered with the user name.
2) Same user to be used to install the Acrobat.
3) Finally the account used to Start the Application Server.

In your case i guess the user name is not same for the above settings.

First work around would be to check from the adminui as David mention.
if you convert the document to PDF then there is something wrong with
your .Net settings.
If not then,
a)open office Word at least once and if its asking for the username
then consider the above mentioned settings.
b) Set the Adobe PDF Printer as the default printer.
c) if upgraded to or installed Acrobat 9.0 after you completed the
LiveCycle ES installation then run Acrobat_for_PDFG_Configuration.bat
batch file [ additional\scripts folder on the LiveCycle ES
installation media ]
d) change the local system account to admin privileged account and
start the Application Server again.

After every step, do a test to see if you can convert the document
to PDF as this would help you to know where exactly the issue was :)

Regards,
Hemant Garg



On Jul 9, 9:37 pm, David Liao <davel...@gmail.com> wrote:
> I would suggest you do the following:
>
> 1.  Go to AdminUI (http://localhost:8080/adminui) > services > PDF Generator
> Service > Create a PDF to see if you can convert that word document to PDF
> manually.
>
> 2.  word -> pdf conversion requires office to be installed and configured,
> and PDF Generator Service to set up for native application support.  Was
> this done?
>
> Thanks,
>
> David
>
>
>
> On Fri, Jul 9, 2010 at 6:27 AM, malin_erika <ma...@malinerika.se> wrote:
> > Hi,
>
> > I am running this example to generate pdf-file from Word document
> > using web services:
> >http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000...
>
> > I use AdoveLivecycle 8.2 and .NET 3.5 (C#). The wordfile is placed on
> > my computer and AdobeLiveCycle is installed (by another person) at a
> > server. I can get Html to Pdf to work, so I guess the web service is
> > ok.
>
> > This is the error message I get when running the code:
>
> > Error: ALC-PDG-1000-000:
> > com.adobe.livecycle.generatepdf.client.ConversionException: ALC-
> > PDG-001-000-Conversion failed because of an exception. An unexpected
> > exception while resolving a new connection to an Adobe Service. Caused
> > by: java.lang.reflect.UndeclaredThrowableException: An unexpected
> > exception while resolving a new connection to an Adobe Service.
> > at .......
>
> > Any suggestions on how to fix this and what can be wrong?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Adobe LiveCycle Developers" group.
> > To post to this group, send email to live...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > livecycle+...@googlegroups.com<livecycle%2Bunsu...@googlegroups.com>
> > .

malin_erika

unread,
Jul 12, 2010, 4:29:50 AM7/12/10
to Adobe LiveCycle Developers
Thanks a lot for you answers David and Hemant! :-)

I used the admin UI and could not create a pdf-file from there. I get
the same error message.

Word is installed, but I don't know by what user. David, what du you
mean with "PDF Generator Service to set up for native application
support"? Is this a setting I need to make in the admin UI?

I will log on to the server and have a look at your suggestions
Hemant.


Regards,
Malin.
> > > livecycle+...@googlegroups.com<livecycle%2Bunsubscribe@googlegroups­.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/livecycle?hl=en.
>
> > --
> > David Liaowww.ensemble.com- Dölj citerad text -
>
> - Visa citerad text -

Hemant

unread,
Jul 12, 2010, 4:43:58 AM7/12/10
to Adobe LiveCycle Developers
Hi Malin,

In adminui, navigate to Applications and services.
Search for PDFGConfig in Name Filter or by PDF ( not remembering the
exact name)
There you would find the option for Native Application support( i
guess it to be true by default).

Select Help - > About Microsoft Word Help
you would know the product licensed to..

Confirm me if the conversion worked for at least once?
Is any update done to Acrobat or Microsoft Office?

Regards,
Hemant Garg
> > > David Liaowww.ensemble.com-Dölj citerad text -

malin_erika

unread,
Jul 12, 2010, 8:08:26 AM7/12/10
to Adobe LiveCycle Developers
Hi again!

Sorry, but I can't find the setting "Native Application Support". (I
have Adobe LiveCycle ES 8.2.1 GM) Under Home > Services > Applications
and Services > Service Management I find a service called
PDFGConfigService. It has four tabs: Configuration, Security,
Endpoints and Pooling. The first tab has these fields (can it be one
of them?):

User Job Options Directory
PS Startup Directory
PS Startup File
Server Conversion Timeout
Job Options Prefix
Non Unicode Apps
Server Threadpool Count
PDFG Cleanup Scan Seconds
Job Expiration Seconds
Default Locale

The version of Word is Microsoft Word 2002 SP3. It says it is licensed
to my networkid, but it is not me who have installed Word (or any
other programs on the server).

On the server there is Adobe Acrobat 9 Pro, Adobe Distiller 9 and
Adobe LiveCycle Desginer ES 8.2. When using Adobe Acrobate I can
creata a pdf from a word-file. Adobe PDF is set to the default
printer.

No, the conversion from word to pdf have not worked at all. I can get
it to work from html to pdf.

How can I find who installed the Adobe applications and who started
them?


Thanks for you help! I'm a real newbie at this.

Regards,
Malin.
> > > - Visa citerad text -- Dölj citerad text -

malin_erika

unread,
Jul 21, 2010, 7:02:46 AM7/21/10
to Adobe LiveCycle Developers
Hi again,

I still have the same problem. How do I find the setting for "Native
Application Support"? And how can I check what user installed the
Adobe software?

Regards,
Malin.

malin_erika

unread,
Aug 27, 2010, 9:16:02 AM8/27/10
to Adobe LiveCycle Developers
This problem is solved! It was the script
Acrobat_for_PDFG_Configuration.bat that needed to run as Hemant
mentioned above.


/Malin
Reply all
Reply to author
Forward
0 new messages