Forum Bugs

Issue with PDF.printScaling

ADobrianskiy
Hello,

I have issues with using PDF.printScaling = "none" property in my js script. Could you please help to handle it?

The exported PDF document (attached to this msg) does not have 100% scale when I try to print it. http://img.newtonideas.com/9g6ADTU90SVNYvM8KcSd.png and "Fit to page" value does not change http://img.newtonideas.com/gWviWsFbkz10aAC2oBVS.png

P.S. Here is the content of my .JS file:
PDF.openAction = "print";
PDF.printScaling = "none";


Regards,
Andrii
  1. design_front_print.pdf38.1 kB
mikeday
That's odd, can you try the attached sample document with JavaScript enabled?
  1. test.html0.1 kB
  2. test.pdf14.2 kB
ADobrianskiy
I attached the script file to the message. Please check.

Here is a screencast of opening the document attached to your message: http://img.newtonideas.com/NjZvfpmfMNXys8zKGhtI.mp4

As you can see, the scale is still not equal to 100.

Regards,
Andiri
  1. script.js0.1 kB
mikeday
Which PDF viewer is that? I tried loading it in Acrobat and it shows that page scaling is disabled:
print.png
  1. print.png23.2 kB
ADobrianskiy
I have just opened it in Google Chrome web browser.

Here is it`s version: http://img.newtonideas.com/BaXRZfLEZlz36GqU1ALx.png
mikeday
I think this may be a bug in Chrome, I can't reproduce it in other PDF viewers.