https://github.com/mdcatapult/pdf-converter
Webservice to convert PDFs to HTML
https://github.com/mdcatapult/pdf-converter
converter pdf webservice
Last synced: 2 months ago
JSON representation
Webservice to convert PDFs to HTML
- Host: GitHub
- URL: https://github.com/mdcatapult/pdf-converter
- Owner: mdcatapult
- License: apache-2.0
- Created: 2022-05-18T09:59:31.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2022-09-27T07:33:59.000Z (over 2 years ago)
- Last Synced: 2025-02-06T13:51:34.848Z (4 months ago)
- Topics: converter, pdf, webservice
- Language: JavaScript
- Homepage:
- Size: 3.27 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PDF Converter Web Service
Loads a PDF over the web which then converts it into HTML.
## How to start
To start the application locally you can run `npm run start` which will start a server on `localhost:8000`, Then you will need to pass it the URL of a PDF which you want to convert.
## Endpoints
Endpoint `get` `/html` followed by a query parameter `?url=` which points to
the location of the pdf. For example, if I wanted to convert this PDF http://www.africau.edu/images/default/sample.pdf to a HTML format,
I would type this into my browser: `http://localhost:8000/html?url=http://www.africau.edu/images/default/sample.pdf`
Response type `text/html`## Running prettier for formatting
`npx prettier --write .`
### Known issues
- Only PDF URLs which end in `.pdf` can be converted at this time
### License
This project is licensed under the terms of the Apache 2 license, which can be found in the repository as `LICENSE.txt`