Author Topic: PDF LINKS PLUGIN (beta)  (Read 6265 times)

Domenico

  • Newbie
  • *
  • Posts: 16
PDF LINKS PLUGIN (beta)
« on: February 06, 2010, 03:07:44 pm »
Here we go.

This Plugin handles Links within PDF Files and is mainly meant to use in conjunction with pdf2swf.

INSTALL:
Copy the attached file to the pluginfolder of your mz3 installation.

Changes to pdf2megazine.bat:
Add the following parameter (marked red) to the pdf2swf commandline inside the pdf2megazine.bat:
"%PDF2SWF%" -q -t -f -T 9 -j75 -O1 -s internallinkfunction=megazine.PDFlinkHandler -G -p %%i "%from%" "%to%%%i.swf"
« Last Edit: February 07, 2010, 12:06:11 pm by Domenico »

rbaybayan

  • Full Member
  • ***
  • Posts: 54
Re: PDF LINKS PLUGIN (beta)
« Reply #1 on: February 06, 2010, 05:59:09 pm »
Can you share some syntax command/sample?

Thanks,

ruel

Domenico

  • Newbie
  • *
  • Posts: 16
Re: PDF LINKS PLUGIN (beta)
« Reply #2 on: February 07, 2010, 11:51:28 am »
To tell the plugin wich function to use we need to customize the pdf2swf commandline inside the pdf2megazine.bat as follow:

"%PDF2SWF%" -q -t -f -T 9 -j75 -O1 -s internallinkfunction=megazine.PDFlinkHandler -G -p %%i "%from%" "%to%%%i.swf"

There are no more changes to do. Add links to your pdf, copy the plugin into your plugin folder and convert the document with pdf2swf.
Thats all.
« Last Edit: February 07, 2010, 12:01:19 pm by Domenico »

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: PDF LINKS PLUGIN (beta)
« Reply #3 on: February 07, 2010, 01:35:11 pm »
Works great, only in-document links do not work as expected (yet). Do I miss anything?

I converted using the parameters for the psf2swf call as suggested:
Code: (xml)
  1.    "%PDF2SWF%" -q -t -T 9 -j50 -O1 -s internallinkfunction=megazine.PDFlinkHandler -G -p %%i -f "%from%" "%to%%%i.swf"
  2.  

copied the by_pdflinks.swf into the plugins folder /megazine/plugins and added the plugin to the plugin list in the book element in my MZ3 file:

Code: (xml)
  1. <book plugins="by_pdflinks, anchors, search, batchpages, console, keyboardnavigation, links, navigationbar, print, swfaddress"
  2. pagewidth="420"
  3. pageheight="594"
  4. zoomminscale="0.5"
  5. zoommaxscale="4.0"
  6.    dragrange="20"
  7. maxpages="10"
  8. qualitycontrol="false"
  9. searchindex="FAQ"
  10.    searchmethod="server"
  11.    searchclear="false">
  12.  

The result can be checked in my Forum Smmary Book

Everything works fine but the ToC (table of content)
Any ideas or suggestions?
Thanks for the great plugin!

Domenico

  • Newbie
  • *
  • Posts: 16
Re: PDF LINKS PLUGIN (beta)
« Reply #4 on: February 08, 2010, 09:15:37 am »
Technically the links in the ToC are working.
Do the internal links of the ToC work as expected when you open the Doc in Acrobat?

You can send me the pdf by email so I can take a view on them.
Maybe something is wrong there.

Crusader12

  • Jr. Member
  • **
  • Posts: 26
Re: PDF LINKS PLUGIN (beta)
« Reply #5 on: February 09, 2010, 08:19:33 pm »
Hi guys,
I've been trying to get this new plugin to work and have tried everything. I've set everything up in Acrobat and the link in the PDF works perfectly. (Nothing fancy either, just linking to an external website).

-Updated the new line in the pdf2megazine.bat file
-Added the plugin to the .MZ3 file
-Copied the file into the megazine/plugins folder

ran pdf2megazine.bat "c:/mags/test.pdf" "pages/page" 1

(among various other commands...)
Although the PDF links are working fine, the SWF DOES show the cursor change and rollover area... but doesn't work locally or on the server.

I'm not sure if I should be able to see the link locally in the SWF or only on the server (which is why I'm unsure if this is a problem in the actual conversion process or inside the magazine somewhere else)

Any ideas? Thx in advance!

Crusader12

  • Jr. Member
  • **
  • Posts: 26
Re: PDF LINKS PLUGIN (beta)
« Reply #6 on: February 09, 2010, 09:13:29 pm »
Just double checked something and am positive that the problem is happening during the actual conversion.

Posted the .SWF file online and links don't work either.... soooo, something is going wrong with the conversion.

I just download version 1.02 of pdf2megazine.bat thinking that would help and nothing happened.

Completely lost.

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: PDF LINKS PLUGIN (beta)
« Reply #7 on: February 10, 2010, 01:25:53 am »
Did you modify the pdf2swf call within the pdf2megazine like shown in this post?
I just converted a customer PDF for test and that work perfectly fine:
http://vservu.de/mz3demo/index-BRM.html#/6

Every single AD is linked.

Did you add by_it to the plugin list in the book element also? Like:
Code: (xml)
  1. <book plugins="by_pdflinks, anchors, search, batchpages, console, ... " ... ... >
  2.  

Crusader12

  • Jr. Member
  • **
  • Posts: 26
Re: PDF LINKS PLUGIN (beta)
« Reply #8 on: February 12, 2010, 10:02:31 pm »
Yup, followed everything exactly several times and am still having difficulties..... Ended up doing it the long way for the time being, pulling it back into Flash and setting up links individually...

MPete

  • Full Member
  • ***
  • Posts: 62
Re: PDF LINKS PLUGIN (beta)
« Reply #9 on: February 15, 2010, 04:40:30 am »
Sorry for being a bit dense but what does this plug in do?

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: PDF LINKS PLUGIN (beta)
« Reply #10 on: February 15, 2010, 02:33:28 pm »
If you have a PDF file with links (external URL addresses) those links will be made available in the final book.
Clicking at the spot will take you to the external site.

See this test magazine as an example:
http://vservu.de/mz3demo/index-BRM.html#/2

demon

  • Newbie
  • *
  • Posts: 18
Re: PDF LINKS PLUGIN (beta)
« Reply #11 on: February 16, 2010, 04:52:48 pm »
Is this plugin good for internal linkings too? I made my links in pdf, some of them are "anchor:index" and some of them are "javascript:MegaZine.goto(6)".

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: PDF LINKS PLUGIN (beta)
« Reply #12 on: February 16, 2010, 05:32:16 pm »
Actually only external links are supported directly (to my understanding).

It might/should be possible to convert internal links with some javascript extensions into e.g. anchors, but we're not the experts and have not checked that in detail (yet).

Perhaps somebody out there is volunteering ;-)?

demon

  • Newbie
  • *
  • Posts: 18
Re: PDF LINKS PLUGIN (beta)
« Reply #13 on: February 16, 2010, 06:54:11 pm »
If you have a PDF file with links (external URL addresses) those links will be made available in the final book.
Clicking at the spot will take you to the external site.

See this test magazine as an example:
http://vservu.de/mz3demo/index-BRM.html#/2

Why is that your links opens in the same page and my links opens in new window. Should i put somewhere in pdf target="_top"? Or?

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: PDF LINKS PLUGIN (beta)
« Reply #14 on: February 16, 2010, 10:55:48 pm »
Actually those links also open in a new window?!?
I did not create that PDF, so I do not know how those were defined.
I guess you have to define the target; somehow.
As you said, like "_self" or "_top" or "_blank" (not testet, just my assumption)