Creating PDFs instead of RTFs
search cancel

Creating PDFs instead of RTFs

book

Article ID: 281548

calendar_today

Updated On: 05-01-2024

Products

CA Plex

Issue/Introduction

Is it possible for CA Plex to directly create reports as PDFs instead of RTF files?

Environment

CA Plex 7.x

Resolution

Currently CA Plex produces only RTF reports and that there is no out of the box solution to directly create PDFs instead of RTFs.

Customers often use 3rd party tools to create the CA Plex reports.

The CA Plex Engineering team has written a basic example in VBScript to convert RTF/DOCX to PDF.

Below is sample VBScript code that can be used as a source code object and called where required:

''------------------------------------------------

''Convert Word document to PDF document.
Set objWordApp = CreateObject("Word.Application") ''Create a Word Application object.
objWordApp.Visible = False

Set objWordDoc = objWordApp.documents.open("C:/TempDoc2PDF/TestWrdDoc.docx")
objWordDoc.saveas "C:/TempDoc2PDF/TestPDFDoc.pdf", 17 ''Convert Word Document to PDF document. 17 - is enumeration value of PDF document type.
''MsgBox "DOc to PDF conversion - Done!!!"
objWordDoc.Close
objWordApp.Quit
Set objWordApp = Nothing

''------------------------------------------------

This requires MS Word installed in the running CA Plex environment.

Making the functionality available at the CA Plex model level wherein choice can be made between RTF versus PDF will take more time and is considered as an enhancement request.

The CA Plex Engineering team has created a backlog item for this request and will consider this for upcoming CA Plex PTF builds.