Questions tagged [nsprintinfo]

19 questions
0
votes
1 answer

Setting showsPrintPanel to false when using NSPrintOperation causes different sizes when printing

When using NSPrintOperation and setting showsPrintPanel to true, the view prints just fine, however when I set the property to false, the view does not print correctly and is bigger than the paper: func printBadge(printerName: String){ let…
0
votes
1 answer

How to print a file in cocoa application depending upon its mime type?

I am working on file manager. I have stored their local urls in my core data. I have file and folder, but I want to print png, jpeg, docx and pdf from my application. Let's suppose I have a print button in my application and every file, how can I…
Hassan Malik
  • 559
  • 6
  • 20
0
votes
2 answers

NSPrintInfo localizedPaperName, how to get paper name in ios?

On my mac I use NSPrintInfo and [NSPrintInfo localizedPaperName] to determine if the default paper size is "US Letter" or "A4". NSPrintInfo * printInfo = [NSPrintInfo sharedPrintInfo]; [printInfo localizedPaperName] How can I get the iOS device to…
spacecash21
  • 1,331
  • 1
  • 19
  • 41
0
votes
1 answer

Dynamically change paper size based on printer being displayed on NSPrintPanel

We are trying to modify the default selected paper size for a NSPrintPanel. Using NSNotification we are able to observe and implement changes on our accessoryViews in the NSPrintPanel. However when we try to implement setPaperSize (NSPrintInfo the…
lv10
  • 1,469
  • 7
  • 25
  • 46
1
2