Automatically convert Excel into PDF

There is an easy way to automatically convert any excel in your directory system into PDF. Follow the these steps:

1. Download the attached jar_files.zip and place the files into the 'ext' folder under serverkernel folder. If the ext folder is not present then create one. See image below.

NOTE: The attached jxcell.jar is the sample/trial jar file. To download the latest jar file you can visit http://www.jxcell.net/.

C:\Program Files\AdeptiaSuite\AdeptiaServer-5.2\ServerKernel\ext

cp6_6327.jpg

2. Now copy the contents of the attached pdf_converter_code.txt and paste it into a custom plugin activity. See image below.

cp1_4503.jpg

3. Create a dummy File Source activity. See image below.

cp2_2964.jpg

4. Create a process flow and place the file source, custom plugin and put-context variable as shown in the image below. Put-context variable is needed to dynamically set the process flow description with file path and name so that it is shown in the logs for tracking purposes. Drag the put-context from the Action category in the Process Designer and double click on it. And create a variable as shown in the image below.

cp3_6194.jpg

 

cp3a_4416.jpg

5. Create a File Event. As shown in the image below. and use the Event Registry to attach it to the process flow. In File Trigger advanced properties check the Trigger Process Flow in Sequence property.

cp4_7277.jpg

 

cp5_4641.jpg


6. Execute the flow and check the files getting created in the folders.

The plugin will create the files in the same folder from where it is picking up the excel files. You can modify the code to change the target file location if needed,

7. You can go to File Event, select the Event and click on Trigger Now. And then go to My Monitor > Events to check the status of the transactions converting the excel files into PDF.

cp7_8173.jpg

 

cp8_8155.jpg

Have more questions? Submit a request

0 Comments

Article is closed for comments.