IBM i

  • 1.  IBM i OSS for PDF Manipulation

    Posted Mon June 07, 2021 08:24 AM
    Greetings to one and all, I need the wisdom of the IBM i Community

    I'm looking for an IBM i Open Source Tool that I can use to manipulate a PDF.  I need to convert an existing PDF from Landscape to Portrait. 

    A little background:
    I received these PDFs on to my IBM i via a webservice provided by a Carrier, so I have no control over the way they are generated. 

    I use PDFdirect printing from IBM i to a Zebra Thermal Printer to produce the labels. Sadly PDFdirect printing does not support the PAGRTT parameter on the printer file, so I can not rotate the print that way.

    The Zebra printer itself does not seem to have the intelligence to rotate the PDF.

    So, the question is: Does anyone have any thoughts on what tool I could use to rotate the PDF clockwise through 90 degrees?

    Thanks in advance for your help.

    Cheers Brad

    ------------------------------
    Steve Bradshaw Friendly Techie Bloke
    ------------------------------


  • 2.  RE: IBM i OSS for PDF Manipulation

    Posted Mon June 07, 2021 08:30 AM
    Just use python:

    Create and Modify PDF Files in Python - Real Python
    Realpython remove preview
    Create and Modify PDF Files in Python - Real Python
    In this tutorial, you'll explore the different ways of creating and modifying PDF files in Python. You'll learn how to read and extract text, merge and concatenate files, crop and rotate pages, encrypt and decrypt files, and even create PDFs from scratch.
    View this on Realpython >



    ------------------------------
    Juan Manuel Alcudia Peñas
    Cd-Invest
    ------------------------------



  • 3.  RE: IBM i OSS for PDF Manipulation

    Posted Tue June 08, 2021 03:07 AM
    Hi Juan

    This is perfect !

    Thanks for the advice 👍

    Regards Steve
    Steve Bradshaw
    +44 7970 978409