PDF scale and rotate

PDF scale and rotate

If you have created a PDF file with the wrong page format, if you want to rotate the PDF or even reposition the PDF contents, then you can consider the advanced workflow utilities component, PDF scale and rotate.

 

The PDF Scale and rotate component makes it possible to scale a PDF to a new size, rotate it at any degrees and move the content to a new position.

 

This component was originally made for resizing a PDF for DriverPrint (Option to use the Windows driver on the operating system for an OS connected printer) to make it match a different size of a label.

 

It is also possible to manually define a new size of the output.

 

None of the fields are mandatory and they are ignored if they are empty or the value 0.

 

The scaling, rotating and moving is done using a transformation matrix and it shouldn’t modify the content of the PDF in any other way. The transformations is added in the order SRT (Scale, Rotate, Translate).

 

Before running this component you need to ensure, that a PDF is loaded to the payload. You can do that either by getting the PDF file initially in the workflow or by creating a PDF file in the payload with the component, Create PDF document.

 

The component has these parameters:

 

PDFScaleAndRotate0001

 

The parameters are:

 

Units

The unit dropdown defines which unit is used for scaling and moving. The default value is centimeters.

 

New width and new height

When a new width and/or a new height is defined then the page is rescaled to that new size. If one of the fields is missing, it will be calculated using the same ratio as the one entered.

 

If Target page width and Target page height is not entered or 0, then they will be set to the new size of the page.

 

 

Move X and move Y

This moves the page using the coordinate system in the PDF

 

Usually this is defined as bottom left is 0,0

 

Move X is the X direction for the move (Usually move to the right)

 

Move Y is the Y direction for the move (Usually move up)

 

Please notice that the coordinate system is depending on the PDF, meaning it is possible for a PDF to be rotated 90 degrees or upside down (or worse).

 

Rotate

This rotates the entire page in any angle as a degree between 0 and 360.

 

Normally this is done counter clockwise. Please note that the rotation depends on the coordinate system in the PDF.

 

Target page width and target page height

This is override parameters for the page width and page height. When only scaling and if these are left blank, then the page width and height is scaled the same.

 

If no scaling is done, the default is to leave the page size as it is.

    Notice: Help Center Transition Update

    As of January 13, 2025, we are excited to announce that our new Help Center is in the final stages of development. While the Knowledge Base is already accessible, our current JIRA system will continue to manage support tickets during this transition period. For assistance with InterForm Output Management Software, please refer to the Support for InterForm Output Management Software.

    We appreciate your patience and understanding as we work to enhance your support experience. If you have any questions or encounter any issues, please do not hesitate to reach out via the existing support channels.

    Best regards,
    The InterForm Support Team


      • Related Articles

      • PDF input and output

        If you want to create PDF output in InterFormNG2, then you need to setup a workflow in InterFormNG2 to do that. If you want to use the PDF inside of an email, then you should consider to check out the email output options first, as the normal create ...
      • PDF

        InterFormNG2 can work with PDF files in multiple ways - both as input and as output. PDF is one of the file types/payloads, that can be handled by the InterFormNG2 workflow. PDF as input A workflow can e.g. accept PDF files as the input file type. ...
      • Create PDF

        The Create PDF shortcut create document is used mostly internally. For normal creation of PDF file you should consider the Create PDF file component. The input payload for this component is intermediate. For use of this component: Please refer to the ...
      • Advanced PDF module

        The Advanced PDF module includes these options: •Append a PDF i.e. merge two PDF files together. •Encrypt, password protect and restrict the use of output PDF files. With this you can create a password protected PDF file and enable/disable functions ...
      • PDF Protect/restrict

        You can password protect and restrict a PDF inside the payload of InterFormNG2, that is later saved. The PDF should normally first be created with the component: Create PDF document. When you open a protected PDF file, you will be prompted for a ...