Skip to main content
1-Visitor
July 18, 2017
Question

Create PDF from office files without Adobe LiveCycle (Generic Worker)

  • July 18, 2017
  • 5 replies
  • 15991 views

Hi,

 

Creating PDF files is impossible without "Adobe Leve Cycle".
Therefore, "Worker" was written. Windhill sends assignments to WorkerServer and receives a PDF from there.
The WorkerServer requires the installed MS Office

 

https://bitbucket.org/renatsun/wc_genericdocumentworker/src

 

Best regards

 

5 replies

1-Visitor
August 23, 2017

New version:

- Change Shapetype to OFFICE.

- Parse xml file (wcdti.xml) to update attributes of Word a document

 

https://bitbucket.org/renatsun/wc_genericdocumentworker/src

1-Visitor
March 19, 2019

Hello Renat,

 

I tried to use your script in Word 2010 , but I've got a script error when vb script execute updating document properties (Word) . I've got security error 80004005 when i tried to set windchill properties. I can update any other properties except windchill attributes.

What do you think about this?

8-Gravel
March 21, 2019

Not sure what version we're discussing here but from Creo 5.0 F000 and Windchill 11.1 you can publish as PDF without Livecycle/AEM. Just have to set the 'Use Office for PDF' recipe option.

1-Visitor
October 13, 2017

Hello Renat,

 

First off, thanks much for this great resource! I've hit a wall trying to implement this where the script stops after launching the MS Office application, probably because I haven't been able to do the first step you mention in your "Read Me" document.

 

You mention to "Run the windows service as a user who has permissions on excel". Could you provide the Service names that need to be configured?

 

1-Visitor
October 16, 2017
The service in which you want to assign the user is called "GS Worker Daemon". Do you have problem with script? Have the correct path to Java SE (workerstart.bat)? Try to enable debugging in the script (workeroffice.vbs) "Debug=true" and watch debug file in directory C:\PTC\GenericDocumentWorker\tmp\GenericWorker.log Best Regards Renat
1-Visitor
October 16, 2017

Hi Renat,

 

Thanks for the clarification and tips! The issue was actually with the script caused by the line I added to make the MS Office application visible. It worked fine when testing the script by feeding the file input and output path, but didn't work when the job was triggered by the worker agent.

 

All is working now. Thanks again for sharing this!

 

Daniel

22-Sapphire I
March 21, 2019

I've gotten this to work perfectly on a laptop install of 11.1 but so far can't get working on our 11.0 servers - case open on it.

The PDF gets generated but is not allowed to go into the vault.  Likely something in our security preventing.  This is using the same CAD Workers that are publishing Creo and SolidWorks perfectly.

 

Looking forward to getting this working and in use.

One downside (we understand - not completely sure yet) is that you can't watermark PDF's created this way in Creo View.

1-Visitor
March 22, 2019

The PDF gets generated suseccful, but is not update fields into metedata document. If some field have inserted into document content - this field not update when attribute have corrected in Windchill and documen have  got new PDF publication.

15-Moonstone
September 18, 2020

I'm looking at finally getting Office documents published to pdf and saved as an attachment to wtDocument and came across this thread. I'm curious to know whether it still would be an issue to get the embedded attributes on a document to update correct to pdf.

 

Attributes are updated through Desktop Integration when the document is downloaded and opened, e.g. State is very important. How would this be with the worker machine? I'm looking at using the Creo View Adapter for PDF with MS Office only.