aqbal / firefox-mac-pdf

Automatically exported from code.google.com/p/firefox-mac-pdf
0 stars 0 forks source link

Source updated to load in FF4, can anyone build (Request) #179

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Looks like colesbury got the plugin to load in FF4 
(http://code.google.com/p/firefox-mac-pdf/source/detail?r=104)
That being said, I can't get it to build in XCode, anyone able to get it to 
build? I'm sure others would appreciate if there was a working .xpi we could 
try out!

Original issue reported on code.google.com by ParkerKuivila on 6 Feb 2011 at 9:25

GoogleCodeExporter commented 8 years ago
Solved: It was an issues with libidl and my 64 bit machine.

To solve:
sudo port install libidl +universal
sudo ln -s /opt/local/lib/libintl.8.dylib /opt/local/lib/libintl.3.dylib

Source:
https://developer.mozilla.org/en/Gecko_SDK#Issues_with_the_OS_X_SDK

Original comment by ParkerKuivila on 7 Feb 2011 at 1:19

GoogleCodeExporter commented 8 years ago
That worked for me - and after dropping the pdfplugin.plugin into 
Library/Internet Plugins and dropping the fx-quartz=pdf.xpi onto the addons 
tab, along with setting FF 4.0b10 to load in 32-bit mode, it works!

Original comment by tobias.boyd@gmail.com on 7 Feb 2011 at 3:13

GoogleCodeExporter commented 8 years ago
Thanks tobias! I forgot that Firefox 4 was 64 bit, that fixes it

Original comment by ParkerKuivila on 7 Feb 2011 at 5:13

GoogleCodeExporter commented 8 years ago
Sorry, I'm completely new to all this. How do you get a fx-quartz=pdf.xpi from 
Colesbury's new revisions in r=104?

Original comment by W.Yaq...@gmail.com on 7 Feb 2011 at 10:47

GoogleCodeExporter commented 8 years ago
Either of you care to share the compiled plugin? I could download the SDK and 
source code and compile it myself but I've got a lot on my plate right now... 
last time I tried it I burned an entire day just getting the SDK loaded 
properly.

Original comment by mr.ni...@gmail.com on 7 Feb 2011 at 2:56

GoogleCodeExporter commented 8 years ago
No problem, I've attached the extension file and the plugin. Put the plugin in 
your '/Library/Internet Plug-Ins' folder and then go to Firefox and use 'File > 
Open' and select the .xpi

Be sure Firefox is checked to run in 32-bit mode

Original comment by ParkerKuivila on 7 Feb 2011 at 3:18

Attachments:

GoogleCodeExporter commented 8 years ago
Fantastic, this works great! One remaining problem is that the save bezel 
button doesn't actually save the pdf.

For anyone using 1password and FF4, to get the 1PW extension working in 32-bit, 
you will need to remove it, reopen 1PW in 32-bit mode, and reinstall it.

Original comment by W.Yaq...@gmail.com on 7 Feb 2011 at 4:01

GoogleCodeExporter commented 8 years ago
Thanks Parker, that did it for me. Will be nice when a working 64-bit build is 
available but I can live with this for now! Some options are still not fully 
functional (save, search) but view/print is working fine.

Original comment by mr.ni...@gmail.com on 7 Feb 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Is cmd + w still crashing FF with this version?

Original comment by larzo...@gmail.com on 8 Feb 2011 at 12:21

GoogleCodeExporter commented 8 years ago
#9. With this version cmd+w no longer crashes FF

Original comment by W.Yaq...@gmail.com on 8 Feb 2011 at 1:14

GoogleCodeExporter commented 8 years ago
Hooray :D

Original comment by larzo...@gmail.com on 8 Feb 2011 at 4:32

GoogleCodeExporter commented 8 years ago
How do you open Firefox in 32-bit mode?

Original comment by sethjst...@gmail.com on 8 Feb 2011 at 4:55

GoogleCodeExporter commented 8 years ago
Find the Firefox.app in your Applications Folder. Select it and hit cmd + i
Somewhere near the top of tha window is a checkbox "start in 32bit mode"... ;)

Original comment by larzo...@gmail.com on 8 Feb 2011 at 4:58

GoogleCodeExporter commented 8 years ago
I can build it in Xcode in 64 bit mode, then I put the plugin in 
/Library/Internet Plugins but I'm not sure on how to package the xpi, I guess 
it is a simple zip file so I get the extension folder in /prebuild and I copy 
the plugin under /extension/plugin, then I zip it all and rename it .xpi but 
I'm not able to make firefox 4b10 to load it, it says: the file must be 
damaged. Am I doing something wrong?

Original comment by conaho...@gmail.com on 9 Feb 2011 at 8:23

Attachments:

GoogleCodeExporter commented 8 years ago
How did you build the plugin in 64 Bit mode? I only get there two errors: 
pdfplugin.mm:66: error: 'NPNVsupportsCarbonBool' was not declared in this scope
pdfplugin.mm:67: error: 'NPEventModelCarbon' was not declared in this scope

Your archive also does'nt work in my setup. But I can recompress and then 
install it.

One addition: Firefox says the addon is incompatible unless I change 
"Darwin_x86-gcc3" and "Darwin_ppc-gcc3" to "Darwin" in install.rdf. I don't 
know why this is so and if others had the same problem. 

Original comment by david.fu...@gmail.com on 9 Feb 2011 at 12:30

GoogleCodeExporter commented 8 years ago
Maybe I was wrong before, I thought I built it as 'universal', selecting 
'64-bit intel' leads to the two errors you listed

Original comment by conaho...@gmail.com on 9 Feb 2011 at 12:38

GoogleCodeExporter commented 8 years ago
Colesbury has posted r105, apparently find in pdf (cmd+f) now works.

Can someone who knows how to compile it, share it here?

Original comment by W.Yaq...@gmail.com on 9 Feb 2011 at 2:27

GoogleCodeExporter commented 8 years ago
I checked out the project but when I hit build, I get 42 errors and 2 warnings.
XCode made a pdfplugin.plugin. But the file is only 41kb where the last 
downloadable version has 242kb... The MacOS folder with the unix executable is 
missing.
Same for the xpi generation - some files missing here too.
Anyone knows how to get this working? Maybe a tutorial?

Original comment by larzo...@gmail.com on 9 Feb 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Larzon, was the first error something about libidl, mach-o, or using the wrong 
architecture? If so, you had the same issue I had, it's a bug in the xulrunner 
SDK. Check out https://developer.mozilla.org/en/Mac_OS_X_Build_Prerequisites 
for some help. There was a specific page that gave great instructions for 
getting it to work, but I can;t find it at the moment :(

Original comment by ParkerKuivila on 9 Feb 2011 at 7:07

GoogleCodeExporter commented 8 years ago
colesbury just released r105 
(http://code.google.com/p/firefox-mac-pdf/source/detail?r=105), which fixes the 
issues with +F (Find). Enjoy!

Original comment by ParkerKuivila on 9 Feb 2011 at 7:12

Attachments:

GoogleCodeExporter commented 8 years ago
hm, I can't get the cmd+f in r105 to actually find any text in ocr'd pdfs. Is 
anyone else getting that with the packaged xpi and plugin from #20?

Original comment by W.Yaq...@gmail.com on 9 Feb 2011 at 7:41

GoogleCodeExporter commented 8 years ago
With the plugin attached by ParkerKu... I can see only the first page of the 
pdf opening in the browser window (at least I can open it in Preview)

Original comment by conaho...@gmail.com on 9 Feb 2011 at 8:11

GoogleCodeExporter commented 8 years ago
Not seeing that behavior conaho, all 27 pages of the PDF I opened as a trial 
worked fine. Scrolling down shows the rest.

ParkerKu, does this latest still require 32 bit mode or is it actually 64?

Original comment by mr.ni...@gmail.com on 9 Feb 2011 at 8:20

GoogleCodeExporter commented 8 years ago
I think it still requires Firefox to be run in 32 bit mode, as the release 
notes didn't specify any changes in the architecture. From what I know, the 
64/32 but issue is from the way the plugon hands the PDFs, but I may he wrong. 

Original comment by ParkerKuivila on 9 Feb 2011 at 8:40

GoogleCodeExporter commented 8 years ago
Find (cmd + f) brings up the firefox findbar, but pdf is not searchable for me, 
too.

Original comment by larzo...@gmail.com on 9 Feb 2011 at 11:32

GoogleCodeExporter commented 8 years ago
Could you post the build errors?

Original comment by colesbury@gmail.com on 10 Feb 2011 at 3:47

GoogleCodeExporter commented 8 years ago
Here is the latest version for Firefox 4:

http://code.google.com/p/firefox-mac-pdf/downloads/detail?name=fx-quartz-pdf-1.2
.0.xpi

If you encounter any problems, please let me know.

This will only work for the 32-bit version of Firefox 4.

Original comment by colesbury@gmail.com on 10 Feb 2011 at 5:07

GoogleCodeExporter commented 8 years ago
Thank you colesbury for your work
Still, when I load a pdf I see the first page and no lateral bar to scroll it, 
although I am able to scroll through the next pages by hitting the arrow keys. 
The sideways is that when I type a word in the address bar and I try to use the 
arrow keys to navigate through the completions I scroll the open below pdf 
pages instead 

Original comment by conaho...@gmail.com on 10 Feb 2011 at 7:14

GoogleCodeExporter commented 8 years ago
works fine for me. I can search in PDFs, can scroll, buttons work fine... 

But Find As You Type doesn't work. I think it used to do with old version.

Thanks

Original comment by dave.ga...@gmail.com on 10 Feb 2011 at 7:44

GoogleCodeExporter commented 8 years ago
forgot something. The plugin doesn't copy itself in internet-plugins directory, 
I have to uncompress the xpi and copy it manually.

Original comment by dave.ga...@gmail.com on 10 Feb 2011 at 7:49

GoogleCodeExporter commented 8 years ago
Thanks Colesbury!

Dave (#29), when you say you can search in PDFs, but can't use find as you 
type, how do you access the search function? Also, does the pdf download button 
work?

Anyone else, do we need to install this on a fresh profile (without traces of 
the previous versions) for the new build to work?

Original comment by W.Yaq...@gmail.com on 10 Feb 2011 at 9:44

GoogleCodeExporter commented 8 years ago
Same results as #29 after copying plugin to internet-plugins directory, 
download button works fine and so does cmd+f. Find as you type doesn't work, 
however. And not sure how to get the special right-click menu working for R106. 

Many thanks for all your work colesbury!

Original comment by W.Yaq...@gmail.com on 10 Feb 2011 at 9:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Something is wrong with the plugin package.  I'll look at it tonight.

Original comment by colesbury@gmail.com on 10 Feb 2011 at 4:06

GoogleCodeExporter commented 8 years ago
I don't know if this is an expected issue or one that needs reporting, but the 
extension doesn't seem to run with 4.0b11 even if I run in 32-bit mode.

Original comment by john.co...@gmail.com on 20 Feb 2011 at 8:30

GoogleCodeExporter commented 8 years ago
Did you put the plugin in the internet-plugins folder? Did you first try in 64 
bit mode? I remember doing so once (on a test profile) and after removing the 
addon, starting ff in 32 bit and re-installing the addon I wouldn't work.
You can try to create a new profile, start FF in 32bit, install the addon and 
see if it works.

Original comment by larzo...@gmail.com on 20 Feb 2011 at 11:15

GoogleCodeExporter commented 8 years ago
That fixed it, sorry, I hadn't realised you had to copy pdfplugin.plugin over! 
It's working great in 32-bit mode apart from that. :)

Original comment by john.co...@gmail.com on 21 Feb 2011 at 10:17

GoogleCodeExporter commented 8 years ago
@colesbury
Any news on 64 version? Would be great ;)

Original comment by larzo...@gmail.com on 21 Feb 2011 at 8:04

GoogleCodeExporter commented 8 years ago
Not sure if any one else has had this issue.  I can get the latest Beta plug in 
to work with FF4B11 in 32 bit mode after copying the pdfplugin.plugin to the 
internet plugins folder.  Works fine but when right clicking on an open PDF I 
don't get the "print" or "save as" option. It's a very limited menu with one 
page, continuous as options.  Not much else

Original comment by rkpar...@gmail.com on 22 Feb 2011 at 2:35

GoogleCodeExporter commented 8 years ago
Comment 30

Are you using the latest build of the .XPI ?

Original comment by ParkerKuivila on 22 Feb 2011 at 2:39

GoogleCodeExporter commented 8 years ago
Yes from comment 27 above

Original comment by rkpar...@gmail.com on 22 Feb 2011 at 4:42

GoogleCodeExporter commented 8 years ago
Just to chime in my 2cents: I have a lot of pdf's not showing any text in the 
plugin, but rendering correctly when subsequently opened in preview.app

Original comment by clauden...@gmail.com on 22 Feb 2011 at 1:43

GoogleCodeExporter commented 8 years ago
Even though Firefox 4 is not going to be available for PowerPC, will this 
extension continue to be available as a Universal binary for the vanishing 
portion of us using TenFourFox (essentially Firefox 4 for PPC without x86-only 
features) 

Original comment by stevi...@gmail.com on 25 Feb 2011 at 3:26

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Follow up to 39:

If I replace the pdf.pdfplugin file in the extension folder with a similar file 
from a previous build then I get the full contextual menu with the print and 
save as function as well. However, if I have a PDF open and try to navigate 
away from the page, firefox crashes so very unstable and not really usable

Also the best way to get the latest version to work I've found

1. Set firefox 4 to start in 32 bit mode
2. Install version 1.2 from comment 27
3. Restart and then quit firefox
4. Browse to profile folder, then extensions
5. Find the colesbury file then change .xpi to .zip
6. Unzip the file
7. delete the zip file
8. restart firefox
9.pdfs should now open but the save as and print are not present on the 
contextual menu on my machine

Hope that's helpful

Original comment by rkpar...@gmail.com on 26 Feb 2011 at 8:35

GoogleCodeExporter commented 8 years ago
Why unzip? Works the same without unzipping.
Also, you forgot to mention to put the .plugin file into the internet-plugins 
folder ;)
By the way, still want the 64 bit version :D

Original comment by larzo...@gmail.com on 26 Feb 2011 at 9:30

GoogleCodeExporter commented 8 years ago
Hi

Didn't work unless I unzipped
I didn't need to put the .plugin file in the internet plug in folder for it to 
work

Original comment by rkpar...@gmail.com on 26 Feb 2011 at 9:40

GoogleCodeExporter commented 8 years ago
For Steviant and anyone else wanting to know if this will work on TenFourFox, I 
modified r106 to build on PPC 10.4 (thus building the service for Fx4), but 
used the 1.1 plugin binary in Internet Plug-Ins/ -- I wasn't able to get Sam's 
1.2 plugin binary to run on 10.4Fx, even though I was able to hack it to build. 
In this form, it works just fine and cursorily seems fully functional. 
Obviously I caution this is totally unsupported, but I might post a note about 
this to the TenFourFox blog with an xpi if people want it. -- ClassicHasClass

Original comment by classi...@floodgap.com on 3 Mar 2011 at 1:04

GoogleCodeExporter commented 8 years ago
I should state that it's a bit crashy, though, so probably not production 
ready. But possible.

Original comment by classi...@floodgap.com on 3 Mar 2011 at 1:16

GoogleCodeExporter commented 8 years ago
Please try this version for Firefox 4:

http://firefox-mac-pdf.s3.amazonaws.com/fx-quartz-pdf-1.2.0.xpi

Let me know if you run into any issues.

Thanks,
Sam

Original comment by colesbury@gmail.com on 3 Mar 2011 at 1:52