split pdf to multiple html file with pdf2htmlEX -


I am trying to split a PDF file into separate HTML files. I mean, I want an HTML file for each PDF page. This is how I do it:

  pdf2htmlEX --split-pages1 LMS.pdf - page-filename lms% 03.html  

In this As a result I found an empty LMS.html and other files: lms% 031.html , lms% 032.html . The problem is that those HTML files have not been formatted correctly, there is no CSS style?

Funny thing about that .. I try to solve a similar problem while trying to Cross stumble For example, my pdf2htmlEX call would correspond to the following: I used the same command except without setting the - page-filename parameter:

  pdf2htmlEX --split-pages 1 LMS.pdf  

Then I opened the main HTML file in Chrome to find a bunch of blank pages. After searching around for a while, I opened the same file in Firefox It worked. Very weird No error was reported in the console output. Of course, I did not even think of Chrome console output. When I found this:

  Uncategorized networkArer: Failed to execute 'Send' to 'XMLHttpRequest': 'Failed to load file: /// ...'. Thanks to God I do not know why it works in Firefox, but if you are getting information about the errors reported by Chrome, you should run a web server.  

This was the simplest and fastest way for me to convert to a directory in which I change and run PDF:

  Python -M Simple HTTPS server  

By default, your page http: // localhost: 8000 . The problem was solved. Whatever server you use the best claim.


Comments

Popular posts from this blog

Folder list php -

objective c - How to open front/back camera at the same time in iOS developing? -

GO: Serve static pages -