Closed
Any file type to PDF Convert and Download
Hi Guys,
Is their any ootb available to convert any type of file to pdf and download.
Thanks,
Srinivas S
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Please check below pdn link:
Hi Susan,
I have gone through all the articles in the pdn but none of them are helpful to fulfill the requirement.
Below is the analysis I have done.
From Google Source I found that the best way to convert Any File to PDF is using Apache POI Library / Document4j Library.
Pega Product have POI Library but all the Packages are not available and the missing packages are specifically used for docx, xlsx, pptx Conversion. Some of the missing one's I have mentioned below.
org.apache.poi.xwpf.converter.pdf.PdfConverter;
org.apache.poi.xwpf.converter.pdf.PdfOptions;
Document4j Library is not available in the Product.
Is there any other alternative to fulfill this.
Thanks,
Srinivas S
Hi Srinivas ,
If you know the name of the JAR(s) for the libraries you want and they are not present OOTB, you can import them into PRPC to make them available to you.
Another approach to consider might using a Print Driver to perform a 'print to PDF' - you would need to write some extra 'plumbing' to do this of course though. (Or perhaps use Pega Robotics?)
You *do* have the ability to read XLSX (I'm not 100% about DOCX, PPTX) using Apache POI; to extract information you need - depending on your requirement you could write you own extractor facility I guess? (use PDFBox to generate a new PDF? Generate a HTML to convert with 'HTMLTOPDF'?).
NOTES: I confirmed that the PdfConverter is NOT available in my PRPC731 OOTB.
I ran the following SQL:
select distinct(pzjar) from pr_engineclasses
where lower(pzclass) like '%pdf%';
This shows the following JARs are installed that contain classes which have the string 'pdf' in them:
Hi Srinivas ,
If you know the name of the JAR(s) for the libraries you want and they are not present OOTB, you can import them into PRPC to make them available to you.
Another approach to consider might using a Print Driver to perform a 'print to PDF' - you would need to write some extra 'plumbing' to do this of course though. (Or perhaps use Pega Robotics?)
You *do* have the ability to read XLSX (I'm not 100% about DOCX, PPTX) using Apache POI; to extract information you need - depending on your requirement you could write you own extractor facility I guess? (use PDFBox to generate a new PDF? Generate a HTML to convert with 'HTMLTOPDF'?).
NOTES: I confirmed that the PdfConverter is NOT available in my PRPC731 OOTB.
I ran the following SQL:
select distinct(pzjar) from pr_engineclasses
where lower(pzclass) like '%pdf%';
This shows the following JARs are installed that contain classes which have the string 'pdf' in them:
jempbox-1.8.12.jar
prprivate.jar
tika-parsers-1.13.jar
Plutext-Enterprise- Proprietary information hidden.jar
prpublic.jar
xmlgraphics-commons-2.1.jar
itext-2.1.7.jar
pdfbox-2.0.1.jar
printegrint.jar
xmlgraphics-commons-1.5.jar
ode-7.3.1.jar
I'm not sure whether some of the functionality you need are contained in any of these libraries or not.
And this to check for the specific Apache POI classes you wanted:
select distinct(pzclass) from pr_engineclasses
where lower(pzclass) like '%pdfconverter%';
select distinct(pzclass) from pr_engineclasses
where lower(pzclass) like '%pdfoptions%' order by pzclass;
And can confirm that neither are present OOTB on PRPC731.
Discussion
Question
Question
Question
Question
Question
Question
Question Solved
Question
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.