![]() |
#61 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2009
Device: Sony PRS 505 SC
|
Help please with soPDF
I am having problems getting this to work. I have VB 2008 on board, but when I double click on the soPDF.exe icon, the command prompt flashes. So I open a command prompt session..... this is where I need some help. If I type c:\soPDF.exe -i book title.pdf it starts to work, only to end with errors and no output. Can someone please show me the correct syntax for making this work? (I have soPDF and the pdf's on c: - no folders)
do I type this"c:\soPDF.exe -i Guns, germs, and steel_the fate of hum - Jared Diamond.pdf" or "c:\soPDF.exe -i c:\Guns, germs, and steel_the fate of hum - Jared Diamond.pdf Or something else.... really lost on this one.. |
![]() |
![]() |
![]() |
#62 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Try:
soPDF.exe -i "Guns, germs, and steel_the fate of hum - Jared Diamond.pdf" ...with quotations around the file name. Or else try renaming the input .pdf so it doesn't have spaces in it. |
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
![]()
I've been using SoPDF a lot, so I went ahead and made a very simple GUI interface for Windows for using it. Again, I mainly made it for myself, but I thought I'd share it in case anyone else might find it worthwhile. I hope theguru or anyone else won't mind.
It looks like this: ![]() It's very barebones, and not at all idiot-proofed. (E.g., it does not check to make sure the options make sense, it will not tell you if SoPDF encountered errors, etc.) Usage: Extract the sopdfwin.exe file from the sopdfwin.zip file into the same directory as SoPDF.exe, and run it instead. (Or create a shortcut to it.) You choose your options, click process, and it will call SoPDF for you. The .ahk file included in the .zip file is the source code for the GUI interface written for AutoHotKey. Make changes if you wish. AutoHotKey does not need to be installed to run the .exe, however. (It would be needed to recompile any changes, of course.) Note, I still don't have an answer to the question about author names, etc., I posted above; that would have to be fixed on the other end. Right now, however, quotation marks are put around the filenames, and metadata fileds automatically when fed into SoPDF. (Edited to include =X='s suggestions below.) Last edited by frabjous; 03-03-2009 at 12:21 AM. Reason: New version of GUI interface attached; see below |
![]() |
![]() |
![]() |
#64 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
@frabjous Great job thank you for the GUI. You know what would be a nice feature. Is if the tool parsed the file name when it was selected.
Example we have a PDF with the filename Plato - Republic.pdf When selecting the file the author selection puts in "Plato" and the Title is "Republic" I know I can type it myself, but tools are suppose to make life much easier ![]() Thank you, =X= |
![]() |
![]() |
![]() |
#65 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
I agree that that would be nice. You just mean from the file name chosen (rather than, e.g., trying to read it from the metadata in the input .PDF)?
Next question: should it parse the input filename, or the output filename? And would everyone agree that it should be "Author - Title" rather than "Title - Author" or something else? (I can imagine some fairly sophisticated parsing algorithms, as well as some very barebones ones; the latter are of course easier to code!) I believe that sopdf will retain the author and name from the input .PDF if these flags are not used (or left blank in my GUI), although I had meant to test that [EDIT: tested and it does]; until theguru (or someone else) fixes the issue in sopdf.exe with quotation marks in the author field I pointed to above, I typically would prefer to make use of that feature than a lot of filename parsing. I guess filename parsing could be made optional, or done with a button or something. Last edited by frabjous; 03-02-2009 at 02:20 PM. Reason: noted above |
![]() |
![]() |
Advert | |
|
![]() |
#66 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Quote:
Quote:
Quote:
Maybe you can have a radio option Autofill: * None * Author - Title * Title - Author =X= |
||||
![]() |
![]() |
![]() |
#67 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
All right; I've modified the GUI interface in response to =X='s suggestions, or at least something close to them. (I deleted the old version, and uploaded the new version, and it's the one attached to the newly edited message above. The image is revised too.)
Quote:
![]() OK, I made it so you could do it with either the input filename or the output file name; personally, I get a lot of files with unhelpful names, and so long as I was renaming them in the process, I might as well make it easier on myself. But for others, doing it with the input file should work too. I also made it to auto-fill the output file name to "inputname-soPDF.pdf", but only if you use one of the Browse buttons. In particular, if you click Browse for the input file name, after you finish, it'll automatically insert that into the output file name. Also, if you click Browse for the output file name, it'll use that as its default "suggestion" (even if the input filename was not filled in through the Browse button), but you can still edit it to something else if you wish. (The particular ending -soPDF is also ignored in metadata parsing.) If you don't use the Browse buttons for either, it won't do this, but I figure most people will use them, and it's good to have some flexibility. Quote:
Quote:
Obviously, someone might prefer the other way of doing it, but there's no pleasing everyone, and I like this way better (...and I really wrote it for my own purposes, after all...) Thanks for the suggestions! |
|||
![]() |
![]() |
![]() |
#68 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
|
![]() |
![]() |
![]() |
#69 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
![]()
No problem.
Does anyone know why this thread is in the LRF subforum rather than the PDF forum, though, considering that SoPdf is PDF > PDF? P.S. I also have to laugh at myself for using the redundant phrase "GUI Interface" above. Does this mean I no longer have the right to laugh at people who say "ATM machine" or "PIN number"? |
![]() |
![]() |
![]() |
#70 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
![]() Anyhow I agree as this thread should be moved because this tool is useful to many people outside of the SONY Reader world. =X= |
|
![]() |
![]() |
![]() |
#71 | |
Connoisseur
![]() Posts: 96
Karma: 11
Join Date: Jul 2006
Location: Montreal
Device: Sony Reader; Kobo; Nook color
|
When I tried a very simple PDF file, the error window pop up like this:
Quote:
|
|
![]() |
![]() |
![]() |
#72 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
My guess is that you didn't unzip the GUI executable into the same directory as SoPDF.exe, as instructed.
The GUI does not contain SoPDF. You need to download and extract it first (as per the first post in this thread). Then extract SoPDFwin.exe into the same directory. Last edited by frabjous; 03-16-2009 at 12:17 PM. |
![]() |
![]() |
![]() |
#73 | |
Connoisseur
![]() Posts: 96
Karma: 11
Join Date: Jul 2006
Location: Montreal
Device: Sony Reader; Kobo; Nook color
|
Quote:
|
|
![]() |
![]() |
![]() |
#74 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
|
Quote:
It's worth a try running it from C:. Since I only wrote the shell, I don't know what the precise conditions are for running SoPDF itself, but I've only tested it from C. What is drive D:? Could you provide a screenshot of the complete contents of the folder containing SoPDFwin.exe and SoPDF.exe? What OS is this? Have you tried running sopdf from a command line rather than using my GUI? Does it work then? EDIT: I just tried running them from a flashdrive, and it worked fine. That is, however, the precise error message I get if sopdf.exe and sopdfwin.exe are not in the same folder. You did unzip both, right? Last edited by frabjous; 03-16-2009 at 06:42 PM. |
|
![]() |
![]() |
![]() |
#75 |
Connoisseur
![]() Posts: 96
Karma: 11
Join Date: Jul 2006
Location: Montreal
Device: Sony Reader; Kobo; Nook color
|
It's working now, somehow the computer I was using at work has problem with it. It work perfectly on my home laptop.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Yet another PDF to LRF converter | cacapee | LRF | 583 | 11-28-2011 06:50 AM |
comiclrf - Comics(CBZ) to LRF converter | FangornUK | LRF | 274 | 06-16-2010 02:24 PM |
Quick/easy LIT to LRF converter? | OUTATIME | Sony Reader Dev Corner | 10 | 02-29-2008 09:44 AM |
Anyone else want chm to lrf converter? | buster | Sony Reader | 10 | 02-09-2008 05:07 PM |
PRS-500 Linux based HTML to LRF converter? | Thiana | Sony Reader Dev Corner | 3 | 04-08-2007 02:34 AM |