Skip to main content
Inspiring
February 9, 2010
Question

(CF9) CFPDF - Rotation sanity check

  • February 9, 2010
  • 1 reply
  • 942 views

The following should rotate a pdf's pages by 90 degrees.  Does anyone else think the rotation is backwards? I would have expected it to work clockwise (ie the logo should be in the top right corner, not bottom left).


<cfpdf action="transform"
    source="c:\myFile.pdf"
    destination="c:\myFileRotated.pdf"
    rotation="90"
    overwrite="true" />

    This topic has been closed for replies.

    1 reply

    Inspiring
    February 9, 2010

    Hm, I just noticed the reported page rotations and sizes are off too.

    <cfpdf action="read"  source="c:\myFileRotated.pdf" name="data">

    <cfdump var="#data#">

    Rotations

    PDFDocumentarray
    10
    20
    30

    ...

    Sizes

    3
    PDFDocument - struct
    height297
    width-396

    ...

    Message was edited by: -==cfSearching==-

    Message was edited by: -==cfSearching==-

    Inspiring
    February 9, 2010

    The suggestion was to swap 90 and 270 to get the correct results. This works. Though there is still the page rotations/sizes issue.

    Inspiring
    February 10, 2010

    As nobody has any thoughts on this one. I am going with bug.