• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Real Book Extractor
#1
I've written a little program to make it easier to extract the pages from a pdf and import them as songs into MobileSheets. It's a .net 4 program, so the runtime for that has to be installed first (but I think that comes with Windows 7).

You can download its install program from
http://tprinn.co.uk/RealBookExtractor/Re...-1.1.0.msi

There's a help page at
https://github.com/trevorprinn/RealBookExtractor/wiki

I've open sourced it, and the source is at
https://github.com/trevorprinn/RealBookExtractor

I've processed several books while I wrote it, and it takes about as long to process a book as it does for you to type in the artists and titles.
Reply
#2
Looks interesting, but I couldn't get it working in Win 8.1. Error message in screenshot.


Attached Files Thumbnail(s)
   
Graeme

1: Samsung 12.2" SM-P900: Android 5.0.2 
2: eSTAR GRAND HD Quad-Core 4G 10.2": Android 5.1 
3: Home-built BT pedal

Some of my music here
Reply
#3
That's a shame. It's worked with all the ones I've tried it on, but I suppose they are all quite old.

I've used an open source library, pdfsharp, to extract the pages, and it looks like they haven't written code to cope with some recent changes that Adobe have made.

All is not lost. If you can extract them some other way into a folder, perhaps using the MobileSheets Companion app, then you should be able to enter that folder name into the main page of the Extractor, load it and work through them.
Reply
#4
I've found a possible way of extracting pages. I'll try and have a look at putting it in later in the week. I might have trouble testing it, though, as I don't think I have any pdfs that use the more recent format.

Edit: Found one.
Reply
#5
OK - no panic. We'll wait and see how it turns out.
Graeme

1: Samsung 12.2" SM-P900: Android 5.0.2 
2: eSTAR GRAND HD Quad-Core 4G 10.2": Android 5.1 
3: Home-built BT pedal

Some of my music here
Reply
#6
I think I have sorted it out. There's a new version at
http://tprinn.co.uk/RealBookExtractor/Re...-1.2.0.msi
Reply
#7
(11-12-2014, 05:06 AM)trevorprinn Wrote: I think I have sorted it out. There's a new version at
http://tprinn.co.uk/RealBookExtractor/Re...-1.2.0.msi

Hmmm.. not here you haven't.

I can load and extract from a large pdf, but the pages don't display.

1 - The first and last pages (i.e. the front and back covers) displayed ok

2 - Pages in between the first and last mainly didn't show at all, a couple or three displayed garbage.

3 - I tried to open some of the non-displaying pages with another program, This reported that, although the files had the .jpg extant, they were really .png files. I renamed a couple, but they still showed nothing or garbage.

Screenshots attached.

A work in progress, I feel.


Attached Files Thumbnail(s)
                   
Graeme

1: Samsung 12.2" SM-P900: Android 5.0.2 
2: eSTAR GRAND HD Quad-Core 4G 10.2": Android 5.1 
3: Home-built BT pedal

Some of my music here
Reply
#8
I see that you switched from pdfsharp to itextsharp (the agpl version).

FYI I had many troubles in the past with the 4.x version of this library with modern pdf's, so I dropped the use of it trying to port an app from linux (using poppler) to windows.

Regards.
Reply
#9
Just for the record, the original pdf was v1.5 (Acrobat 6.x) and created in 1999.

Many of the pdf's that musos will be using ( mainly fake book stuff) have been knocking around for years - there's not a lot that's new out there Sad .
Graeme

1: Samsung 12.2" SM-P900: Android 5.0.2 
2: eSTAR GRAND HD Quad-Core 4G 10.2": Android 5.1 
3: Home-built BT pedal

Some of my music here
Reply
#10
PDFsharp seems to support only PDF's from 1.2 to 1.4 .... although it can create pdfs marked from 1.2 to 1.7.

I suppose that the new pdf engine that Trevor is using (iTextPdf) may support pdf 1.5 without problem. I only had problems with pdfs beyond 1.7 extension level 3 in my application using this library, so there must be a work in progress as you said.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.