Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:57:57+00:00 2026-06-14T04:57:57+00:00

I am drawing a document in cocoa, and it is 90 degrees rotated so

  • 0

I am drawing a document in cocoa, and it is 90 degrees rotated so the print job is sent correctly to a thermal label printer. It works fine, since the document is rotated 90 degrees correctly according to the label printer layout. But I want to display the document for the user in PDFView correctly, how can I rotate the whole document 90 degrees as it is inserted using “setDocument”? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:57:58+00:00Added an answer on June 14, 2026 at 4:57 am

    Create a PDF first.
    In PDF you can create rotated pages in 2 ways: set page size to 8.5*11in and set the Rotate page attribute to 90, or simply set the page size to 11*8.5in. Visually there is no difference.
    The problem with Preview (and I assume also PDFKit behind it) is that when you set the rotation to 90, it does not simply set the Rotate attribute to 90, but it switches the page width and height and applies a transformation on the page content stream so that the page content appears rotated. Because the [PDFPage rotation] and CGPDFPageGetRotationAngle return the value of the Rotate attribute, they will always return 0 on pages rotated with Preview and PDFKit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using System.Drawing.Printing, I want to print a set of lines on print document. But
I have created a Cocoa document based picture drawing application. I want that the
I'm working on a drawing application with HTML5 (canvas) which works fine besides that
public byte[] imageToByteArray(System.Drawing.Image imageIn) { Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); dlg.FileName = Document; //
I am using the .NET Printing namespace to print a document to file through
I have a MFC document/view C++ graphics application that does all its drawing to
I'm creating a drawing application with HTML5 canvas. It works accept for one thing.
I am manually printing and drawing a document using this class but not sure
I have some code that prints a document using the System.Drawing.Printing namespace. This now
Drawing a blank on this, and google was not helpful. Want to make a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.