Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Please help me
Copy link to clipboard
Copied
We can't help you. Report this bug to the developers of the Chrome PDF plugin.
Copy link to clipboard
Copied
I mean, after hitting the print button the below dialog is opening but the page numbers is not showing
Copy link to clipboard
Copied
It is showing all pages instead of particular pages set in code
Copy link to clipboard
Copied
Report this bug to the developers of the Chrome PDF plugin.
Copy link to clipboard
Copied
ok, I will report but it happing with all browser
any alternate solution?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
There is no alternate solution.
Copy link to clipboard
Copied
Chrome is a spyware, you should not use it.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more