Print pages to PDF 0.5.0.2.1

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Print pages to PDF 0.5.0.2.1

Unread post by billmcct » 2018-08-23, 13:33

Print pages to PDF 0.5.0.2.1 is officially dead I guess. On v28 it does absolutely nothing now.
I could find no way to contact the developer perhaps someone would be able to do that?
The 5.0.6 version is no longer on his support page. All links are dead.

Bill
Last edited by billmcct on 2018-08-23, 13:35, edited 1 time in total.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

JustOff

Re: Print pages to PDF 0.5.0.2.1

Unread post by JustOff » 2018-08-23, 16:13

Try this fix for 0.5.0.2.1:

Code: Select all

--- chrome\content\processPdf.js.orig	Sat Mar 26 00:06:53 2016
+++ chrome\content\processPdf.js	Thu Aug 23 19:07:09 2018
@@ -1137,3 +1137,3 @@
 		
-		this._ndPageList.selectedItem=-1; //from some reasons clone otherwise fails
+		//this._ndPageList.selectedItem=-1; //from some reasons clone otherwise fails
PS: Download XPI -> Rename to ZIP -> Extract processPdf.js -> Edit processPdf.js -> Replace processPdf.js in ZIP -> Rename to XPI -> Install.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Print pages to PDF 0.5.0.2.1

Unread post by billmcct » 2018-08-23, 16:56

Replacing -

- this._ndPageList.selectedItem=-1; //from some reasons clone otherwise fails
+ //this._ndPageList.selectedItem=-1; //from some reasons clone otherwise fails

Gets it to trying to save but doesn't complete. Shows as 100% with the throbber rotating for over 5 minutes.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

JustOff

Re: Print pages to PDF 0.5.0.2.1

Unread post by JustOff » 2018-08-23, 17:03

That's strange, I'll send you the resulting xpi that works for me via PM to check.

UPD: As it turned out, the reason was that Print pages to PDF works only on Pale Moon 32-bit (see Limitations).
Last edited by JustOff on 2018-08-23, 18:20, edited 1 time in total.

Thehandyman1957

Re: Print pages to PDF 0.5.0.2.1

Unread post by Thehandyman1957 » 2018-09-19, 20:46

Hello Justoff, I have tried to follow your instructions and cannot seem to get it to work.
I have gone to the PM 32 bit version.
I downloaded the .xpi
I changed it to a zip.
I opened it up.
I found the processPdf.js
I found the lines you show.
I copied your edit and replaced the old one.
Saved edit.
imported the updated edit to the zip.
changed it back to .xpi
installed.

Tried to print to pdf, Nadda, zip. Just sits there.

Am I missing something here? :problem:
I even re-checked the processPdf.js file to see if the changes had been saved. No issues there. :think:

JustOff

Re: Print pages to PDF 0.5.0.2.1

Unread post by JustOff » 2018-09-20, 10:41

Thehandyman1957 wrote:I found the lines you show. I copied your edit and replaced the old one.
I.e. you changed one line by adding "//" to the beginning, right?
Tried to print to pdf, Nadda, zip. Just sits there.
Sorry, but I'm a little confused by this report. Are there any errors in the console?

PS: I hope you are using 32bit Pale Moon?
Last edited by JustOff on 2018-09-20, 10:42, edited 1 time in total.

Thehandyman1957

Re: Print pages to PDF 0.5.0.2.1

Unread post by Thehandyman1957 » 2018-09-21, 02:57

JustOff wrote:
Thehandyman1957 wrote:I found the lines you show. I copied your edit and replaced the old one.
I.e. you changed one line by adding "//" to the beginning, right?
Tried to print to pdf, Nadda, zip. Just sits there.
Sorry, but I'm a little confused by this report. Are there any errors in the console?

PS: I hope you are using 32bit Pale Moon?
Yes, I'm using 32 bit PM, I didn't add the // I simply copied the whole line
from your quote and replaced the one in the file. I will try it again
by just adding those two //.

No, no errors, just wouldn't do anything. Would load the window but then
would just sit there dead.

User avatar
therube
Board Warrior
Board Warrior
Posts: 1651
Joined: 2018-06-08, 17:02

Re: Print pages to PDF 0.5.0.2.1

Unread post by therube » 2018-09-21, 03:06

(I'll just note that I made the changes & tried it & it worked.
The reason for 32-bit is that he includes a binary file [.dll] in there, & that is 32-bit.)

Thehandyman1957

Re: Print pages to PDF 0.5.0.2.1

Unread post by Thehandyman1957 » 2018-09-21, 03:21

Ok, I got it. Sorry to bother you. I'm sure in the tech world your instructions
were spot on. But my dumb ass stumbled all over it. :?

Thank you for the patch JustOff. ;)

Locked