Skip navigation
Currently Being Moderated

Print Preview Rotation

Apr 24, 2012 12:22 PM

Currently I use PDAnnotHandlers GetPrintAppearanceProc to provide the appearance for printing.  When the user rotates the page, in Acrobat, the appearance rotates with the page as desired (I have not set the NoRotate flag in the annotation.).  However, in the print preview dialog and in the subsequent printout, the appearance is not automatically rotated.

 

I would take this to mean that I need to manually rotate the appearance in GetPrintAppearanceProc, however I'm not sure how to determine when to do this given that I only have a PDAnnot object and an ASFixedRect.   Am I missing some way of doing this?  Any guidance would be appreciated.

 

 
Replies
  • Currently Being Moderated
    Apr 24, 2012 11:15 PM   in reply to ctartamella

    You can get from your Annot to the Page that it lives on, determine the rotation and apply it as necessary.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 11:45 PM   in reply to ctartamella

    OH – you mean the user is rotating it at print time.

     

    In that case, then rotation should be happening automatically for your annotation appearance stream.  You are generating a stream for use, yes?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2012 8:23 AM   in reply to ctartamella

    AH – you fell for the comment Image Xobject problem.

     

    The last two values of the 'cm' need to be the size you want to draw the image…

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)