Author Topic: More user friendly pdf2megazine.bat or pdf2swf  (Read 2151 times)

MPete

  • Full Member
  • ***
  • Posts: 62
More user friendly pdf2megazine.bat or pdf2swf
« on: November 12, 2009, 05:33:45 PM »
I recommend pdf2megazine.bat be updated to be much easier for people uncomfortable using cmd.

I've uploaded an example of what I use, feel free to use it: http://pacraig.com/megazine/convert.exe

INSTRUCTIONS to convert pdfs:
1. Drag and drop your pdf onto convert.exe
2. oh, there is no step 2, that's it!

No editing paths to swf2pdf.exe, no bumming around in cmd to get to the right paths, no manual typing and mistakes.

What it's doing:
pdf2swf.exe and pdf2megazine.bat are compiled into the same exe file. When you drag and drop a pdf onto it, it grabs the path to that file and does the rest of the magic for you. For more flexibility you can have the user input number of pages to convert, output file name, whether to use compression etc.
« Last Edit: November 12, 2009, 05:35:39 PM by MPete »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1342
  • MegaZine3 Developer
    • MegaZine3
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #1 on: November 12, 2009, 07:17:24 PM »
Sweet! Yeah, the script is not very user friendly, true. Problem is, my time is limited, as is every one's ;)
That's a great first step of improvement.

I'll take the liberty of moving this to the user contributions section, to make it easier for people to find it.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

rxb216

  • Newbie
  • *
  • Posts: 7
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #2 on: March 30, 2010, 07:19:47 AM »
is it possible to use this convert.exe with other pdf2swf paramenters?

Like the ones outlined at http://www.swftools.org/pdf2swf.html ?

I want to use the -F and -f commands with convert.exe, will it support it?

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #3 on: March 30, 2010, 09:01:35 AM »
sure, you just have to edit pdf2megazine.bat with an editor (like any text editor as Notepad++) and look for the row with the call of pdf2swf.

There you will find some of the switches listed. Feel free to modify as you like.

You can find a list of those parameters and switches in this blog also:
http://www.vservu.com/blog-tip-ls   (1. topic)

There are also threads about it in this forum, like:
http://megazine.mightypirates.de/forum/index.php/topic,1031.0.html

rxb216

  • Newbie
  • *
  • Posts: 7
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #4 on: March 31, 2010, 10:31:09 PM »
well i can see that convert.exe automatically makes a file called pdf2megazine.bat

I went into the file and saw this line: %PDF2SWF% -q -t -T 9 -s zoom=100 -p %%i "%FROM%" "%TO%%%i.swf"

I assume this is where I can change the switches. After I made the changes to the switches I want, I then copied this bat file to my c:/program files/swftools directory
I also kept the line that says "SET PDF2SWF=pdf2swf.exe" the same

However now what? Whenever I try to run the bat file, it does not work, I get the output below (there is some text above and below this, i centered near the error line):

e.g.: pdf2megazine.bat "C:/MyPDF.pdf" "files/page" 12
The system cannot find the file specified.
names page1.swf through page12.pdf.


How do I use the bat file in conjunction with my pdf file?

During my troubleshooting, I also changed the SET line to: SET PDF2SWF="c:/program files/swftools/pdf2swf.exe"
but that did not help. Same thing if I used the "" or not
« Last Edit: March 31, 2010, 10:38:11 PM by rxb216 »

rxb216

  • Newbie
  • *
  • Posts: 7
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #5 on: April 01, 2010, 12:40:23 AM »
looks like things are working, had to re-examine my command line parameters

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #6 on: April 05, 2010, 03:20:31 AM »
I just provided links to a new set of command files: set_param and pdf2mz3
Together with a tutorial with a short introduction (mor coming soon).

set_param: collection of many parameters with a short description, default values and an easy way to modify your book specific setting
pdf2mz3: called by set_param and provided with all the parameters and settings, creates some folders needed to manage several books in one directory, converts the pdf book into swf pages (making use of pdf2swf), creates a full working mz3 file and the related index file.

With one double click and entering the book/pdf name and page count everything else id sone automatically.
Changes can be performed quickly and a new book is created in a minute...
This also will give you a complete example of a book supporting links, search, batchpages and scale.

The tutorial (as MZ3 book) is available here:
pdf2mz3 tutorial as MZ3 book

A list with download links is available in our blog
and the tutorial section at vservu.com

Please report any problems and suggestions! ALthough I tested with several files and configurations, there still can be some areas that need improvement ;-)
« Last Edit: April 05, 2010, 03:22:02 AM by hnuecke »

Ecnassianer

  • Full Member
  • ***
  • Posts: 89
    • Carpe Chaos
Re: More user friendly pdf2megazine.bat or pdf2swf
« Reply #7 on: April 05, 2010, 10:45:40 PM »
Oow, is that book a sneak peak at 2.0.7? I like it.
See my megazine at CarpeChaos.com