requests as a PDF for a few thousand requests

Hi,

You can output a request as a PDF to print it. This can be done via the three point menu then “PDF”.

As a result, the PDF is downloaded and displayed in parallel.

The URL for example then looks like this:
/itg/web/knta/crt/PrintableRequestDetailPDF.jsp?REPORT=N&REQUEST_ID=332197&TIMESTAMP=1734602427352&USER_ID=126439&pdfSettings.addHeader=N&pdfSettings.a ddDateToHeader=N&pdfSettings.addTitleToHeader=N&pdfSettings.pageTitle=&pdfSettings.addBannerToHeader=N&pdfSettings.pdfPageType=0&pdfSettings.pdfPageOrie ntation=P&pdfSettings.scaleToFit=1&pdfSettings.pdfPageScale=60&pdfSettings.pdfMarginTop=14.17325&pdfSettings.pdfMarginLeft=14.17325&pdfSettings.pdfMargi nBottom=14.17325&pdfSettings.pdfMarginRight=14.17325&imageableWidth=566.6534999999999&imageableHeight=812.6534999999999&pageHeight=841.0&pageWidth=595.0

Now my question is, if I want to do this programmatically for a few thousand requests, does anyone know if there is a possibility?

Kind regards

Stefan Henneke

  • Suggested Answer

    0  

    Hi Stefan,

    If you can do it for one request, what prevents you to use some tools or library such as Selenium to automate that for a few thousand requests? As long as the user you authenticated with has access to these requests, I don't quite see what's blocking you. 

    Also, if you need this to be purely programmatic (no automated browser or RPA tool), you can use a standard HTTP client and authenticate either with username/password on itg/rest2/ping (this will give you a valid PPM HTTP session that you can use to do GET/POST on any PPM URLs). If you use SSO, you can use API Key authentication on the dedicated api-auth endpoint to also get a PPM Session to make your calls. 

    Note however that you will NOT be able to use the recently introduced Bearer token Auth with your API key: these calls are ephemeral (no session will be kept) and you can only access REST APIs with it - so that won't work to call the JSP in charge of created Request PDF exports.