Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

this.print is not working in chrome

New Here ,
Oct 13, 2020 Oct 13, 2020

I have a PDF file with buttons about every 10 pages that look like a printer icon.

When clicked they will print the entire section of that part of the PDF (about 10 pages).

It does this by printing page ranges.

The current code is looks like this with different page ranges in each button:

this.print({nStart: 9, nEnd: 20});

It works great when someone opens the PDF file in Adobe Reader.

The problem with this code is it doesn't work when someone opens the PDF file in a web browser.

TOPICS
How to , Print and prepress
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

Please help me

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

We can't help you. Report this bug to the developers of the Chrome PDF plugin.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

 

I mean, after hitting the print button the below dialog is opening but the page numbers is not showing

 

ss.PNG

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

It is showing all pages instead of particular pages set in code

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Report this bug to the developers of the Chrome PDF plugin.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

ok, I will  report but it happing with all browser

 

any alternate solution?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Don't open the file in a browser. Almost all of them have sub-part PDF plugins.

Save it locally and then open it in Adobe Acrobat or Reader.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

There is one alternative way of doing it, though. Maybe they bothered implementing that one (although I doubt it). Try this code:

 

var pp = this.getPrintParams();
pp.printRange = [[9, 20]];
this.print(pp);

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

Thanks, I really appreciate it.

and it is working in adobe reader but when I tried the button in chrome then nothing happens.

you are a expert, please try it on your system and tell me it is working it or not.

if working then i did something wrong

 

please help me I need this 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 14, 2020 Oct 14, 2020

What you are doing wrong is assuming this is something to do with Adobe. No. Not any more. Today, Each browser maker has its own PDF viewer. Each has its own limits and bugs. You have to test each one. The chances of success are small. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2020 Oct 14, 2020

If you tried the code and it didn't work for you there's no point in me doing the same. As I said, it's not guaranteed to work anywhere beside (some) Adobe software.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 14, 2020 Oct 14, 2020

Please provide me any alternate solution.

 

Actually, I have taken a project on a freelancing website and the client needs this.

 

Please help me, it is a $15 project. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2020 Oct 14, 2020

So you want me to work for you for free, so you could earn money from a project you're not qualified to do in the first place? I don't think so.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 14, 2020 Oct 14, 2020

I don't mean it this way

I just want to not cancel the order because it will hammer my profile.

 

I can pass the amount of $20 for this if found any alternate solution.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2020 Oct 14, 2020
LATEST

There is no alternate solution.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2020 Oct 14, 2020

Chrome is a spyware, you should not use it.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines