Print Edit not working in Pale Moon 28 Topic is solved
Moderators: FranklinDM, Lootyhoof
-
- Apollo supporter
- Posts: 47
- Joined: 2015-06-28, 03:49
- Location: WI
Re: Print Edit not working in Pale Moon 28
There are still bugs, even with the changes mentioned above.
For the record, I made the following changes:
find (line 449):
Code: Select all
if (printEdit.versionComparator.compare(printEdit.appInfo.version,"55.0a1") >= 0) printEdit.ffVersion = "55.0";
replace:
Code: Select all
if (printEdit.versionComparator.compare(printEdit.appInfo.version,"28.0") >= 0 && printEdit.appInfo.name == "Pale Moon") printEdit.ffVersion = "52.0";
else if (printEdit.versionComparator.compare(printEdit.appInfo.version,"55.0a1") >= 0) printEdit.ffVersion = "55.0";
find (line 1356):
Code: Select all
if (printEdit.ffVersion >= +"51.0")
replace:
Code: Select all
if (printEdit.ffVersion >= +"51.0" && !printEdit.ffPaleMoon)
find (in line 531, but not line 1486):
Code: Select all
if (printEdit.ffVersion >= +"29.0")
replace (in line 531, but not line 1486):
Code: Select all
if (printEdit.ffVersion >= +"29.0" && !printEdit.ffPaleMoon)
The find code appears twice in printedit-browser.js. The first instance is at line 531 in the original file and is the one to change. You'll see CustomizableUI in the if statement just below the line to change (in the other instance at line 1486 you'll see zoom in the if statement below).
I then installed the add-on from file. Those 3 changes DID help. Print Edit THEN works as it should, PROVIDED THAT you do not change any of the default settings in Options. In particular, if you select the "on first entry enable PDF" option, then the add-on will fail when you press the PREVIEW button. But otherwise the add-on seems to work as it should.
For the record, I made the following changes:
find (line 449):
Code: Select all
if (printEdit.versionComparator.compare(printEdit.appInfo.version,"55.0a1") >= 0) printEdit.ffVersion = "55.0";
replace:
Code: Select all
if (printEdit.versionComparator.compare(printEdit.appInfo.version,"28.0") >= 0 && printEdit.appInfo.name == "Pale Moon") printEdit.ffVersion = "52.0";
else if (printEdit.versionComparator.compare(printEdit.appInfo.version,"55.0a1") >= 0) printEdit.ffVersion = "55.0";
find (line 1356):
Code: Select all
if (printEdit.ffVersion >= +"51.0")
replace:
Code: Select all
if (printEdit.ffVersion >= +"51.0" && !printEdit.ffPaleMoon)
find (in line 531, but not line 1486):
Code: Select all
if (printEdit.ffVersion >= +"29.0")
replace (in line 531, but not line 1486):
Code: Select all
if (printEdit.ffVersion >= +"29.0" && !printEdit.ffPaleMoon)
The find code appears twice in printedit-browser.js. The first instance is at line 531 in the original file and is the one to change. You'll see CustomizableUI in the if statement just below the line to change (in the other instance at line 1486 you'll see zoom in the if statement below).
I then installed the add-on from file. Those 3 changes DID help. Print Edit THEN works as it should, PROVIDED THAT you do not change any of the default settings in Options. In particular, if you select the "on first entry enable PDF" option, then the add-on will fail when you press the PREVIEW button. But otherwise the add-on seems to work as it should.
-
- Fanatic
- Posts: 142
- Joined: 2014-11-19, 19:48
Re: Print Edit not working in Pale Moon 28
I can't replicate your issues here. All options appear to be working for me (and I specifically made sure to test the "on first entry enable PDF" option).
You could try making the following additional change to printedit-browser.js and see if it helps. It's the only thing I see that's obvious. Testing here with and without this change made no difference, but maybe it will help you.
find (at or near line 1335):
replace:
Good luck!
You could try making the following additional change to printedit-browser.js and see if it helps. It's the only thing I see that's obvious. Testing here with and without this change made no difference, but maybe it will help you.
find (at or near line 1335):
Code: Select all
else if (printEdit.ffVersion >= +"34.0") printEdit.editBrowser.docShellIsActive = true;
Code: Select all
else if (printEdit.ffVersion >= +"34.0" && !printEdit.ffPaleMoon) printEdit.editBrowser.docShellIsActive = true;
Re: Print Edit not working in Pale Moon 28
Hi Ostradamus,
I can confirm that your suggestions work, all fine again with Print Edit.
Thank you very very much, great work.
I can confirm that your suggestions work, all fine again with Print Edit.
Thank you very very much, great work.
-
- Fanatic
- Posts: 142
- Joined: 2014-11-19, 19:48
Re: Print Edit not working in Pale Moon 28
Good to hear. Thanks for the feedback!
-
- Fanatic
- Posts: 113
- Joined: 2016-01-29, 00:21
Re: Print Edit not working in Pale Moon 28
IMHO there's a more elegant solution to PrintEdit or Nuke Anything Enhansed... that's FinePrint (from the makers of pdfFactory Pro). Even though PrintEdit can be hacked to work now with PM 28, it's probably going to be more & more problematic down the road because it's not being developed anymore. FinePrint, on the other hand, is state of the art, is constantly being developed & will work with any app or browser.
It does everything PrintEdit does & way more. The biggest benefit is that it's cross browser & application compatible, meaning it can be used with any browser and / or application. It's not free though.
https://fineprint.com/fp/
It does everything PrintEdit does & way more. The biggest benefit is that it's cross browser & application compatible, meaning it can be used with any browser and / or application. It's not free though.
https://fineprint.com/fp/
Universal print previewer
Delete unwanted pages
Convert to grayscale
Lighten content to save ink
Remove blank pages
Crop pages
Edit text
Sign and mark up print jobs
Remove unwanted text and images
Print multiple pages on a single sheet
Print electronic letterhead
Archive print jobs
works with all applications, browsers & printers
combine documents
delete unwanted pages
add watermarks and stamps
convert to grayscale
print on electronic letterheads/forms
multi-up printing
duplex printing
remove graphics
copy, highlight, redact text
remove, copy, save specific graphics
add borders
control margins
create booklets
save as TIFF, JPEG
archive print jobs
text notes
signatures/initials
snapshot tool
-
- New to the forum
- Posts: 1
- Joined: 2018-12-12, 16:49
Re: Print Edit not working in Pale Moon 28
Well, FinePrint is indeed a really nice tool (which I know for around 20 years), but it works like a printer driver, does not allow to edit single page elements, is not free and can't be installed as non-admin (AFAIK).
-
- Fanatic
- Posts: 113
- Joined: 2016-01-29, 00:21
Re: Print Edit not working in Pale Moon 28
Exactly. That's the beauty of it... it's cross browser & application compatible, meaning it's not tied to just one browser or app.WarpEnterprises wrote:Well, FinePrint is indeed a really nice tool (which I know for around 20 years), but it works like a printer driver
It absolutely does. You can copy, cut, delete, paste move items around, add new text, etc on a single page. It's all done in the snapshot mode.WarpEnterprises wrote:does not allow to edit single page elements
I stated that in my original post. Some things in life, especially top shelf quality, have a price. Not all developers work solely for the betterment of mankind.WarpEnterprises wrote:is not free
Last edited by Trapper on 2018-12-12, 19:45, edited 1 time in total.
-
- Newbie
- Posts: 5
- Joined: 2019-01-05, 00:56
Re: Print Edit not working in Pale Moon 28
I apologize for my ignorance, I've spent several hours searching for what is probably a very simple answer.0strodamus wrote: You should be able to get rid of the CustomizableUI errors by adding a third edit to the printedit-browser.js code. I've tested the following change here, but as this isn't affecting Linux I'm seeing no difference. Hopefully, this change will fix things for you in Windows.
find:replace:Code: Select all
if (printEdit.ffVersion >= +"29.0")
The find code appears twice in printedit-browser.js. The first instance is at line 531 in the original file and is the one to change. You'll see CustomizableUI in the if statement just below the line to change (in the other instance at line 1486 you'll see zoom in the if statement below).Code: Select all
if (printEdit.ffVersion >= +"29.0" && !printEdit.ffPaleMoon)
I'm trying to make these same edits to Print Edit 18.4, but PM rejects my modified version, complaining that its corrupt.
- Rename the .xpi to .zip, unzipped, edited the files, zip the folders preserving layout, and rename to .xpi.
- Update the digest hashes in manifest.mf and mozilla.sf then zip & rename to .xpi, but maybe that won't work since the mozilla signature won't compute anyway?
- Remove the META-INF folder, zip & rename to .xpi
- ...
Re: Print Edit not working in Pale Moon 28
This means that you really made some kind of mistake when editing or repacking the extension. You need to make sure that you have done everything right, and I also advise you to use 7zip to update the xpi package.mopani wrote:I'm trying to make these same edits to Print Edit 18.4, but PM rejects my modified version, complaining that its corrupt.
To be correct, you should remove the META-INF folder, however Pale Moon ignores it, so this was not the cause of the error in your case.What is the correct process for hacking an .xpi file so that it won't be rejected as corrupt on installation?
Re: Print Edit not working in Pale Moon 28
The posted link to PrintEdit 18.4 no longer works (the file is not there).
Does anyone know of a repository for old add-ons where it might be available?
Does anyone know of a repository for old add-ons where it might be available?
-
- Astronaut
- Posts: 650
- Joined: 2017-08-14, 23:43
Re: Print Edit not working in Pale Moon 28
viewtopic.php?f=46&t=21214firefoxed wrote:Does anyone know of a repository for old add-ons where it might be available?
Re: Print Edit not working in Pale Moon 28
Did all the edits suggested, that worked perfectly!
Huge thanks, it's wonderful having that add-on functioning again.
Huge thanks, it's wonderful having that add-on functioning again.
-
- Fanatic
- Posts: 142
- Joined: 2018-11-17, 18:19
Re: Print Edit not working in Pale Moon 28
Dear JustOff, thank you for your wonderful extensions and many helpful tips in the threads of the Pale Moon Forum.
You said a while back, if a user deletes unneeded locale folders from a xpi file, he should also remove the corresponding lines from the chrome.manifest to keep the xpi module in proper condition.
Is there any reference that should be removed from somewhere as well when deleting a META-INF folder? (In general. Not only for Print Edit.)
Last edited by Konrad on 2019-05-20, 19:39, edited 1 time in total.
Re: Print Edit not working in Pale Moon 28
This folder is not linked from anywhere in the xpi package, so you can simply delete it by itself.
PS: You don't have to give thanks every time you ask a question, it makes me feel a little uncomfortable)
-
- Fanatic
- Posts: 142
- Joined: 2018-11-17, 18:19
Re: Print Edit not working in Pale Moon 28
I take my hat off to you, JustOff!
By the way, some xpi files contain a webextension folder which seems de trop for Pale Moon.
Can one delete that folder without negative consequences? Are there any associated links that should be eradicated?
By the way, some xpi files contain a webextension folder which seems de trop for Pale Moon.
Can one delete that folder without negative consequences? Are there any associated links that should be eradicated?
-
- Moon lover
- Posts: 99
- Joined: 2012-01-14, 11:22
Re: Print Edit not working in Pale Moon 28
If someone could PM me that modified working xpi, I'd be grateful. I know I could do it myself, but I spent days going through all FF extensions and a time save would be nice.