Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone version #2

Open
Sevenanths opened this issue Aug 16, 2017 · 5 comments
Open

Standalone version #2

Sevenanths opened this issue Aug 16, 2017 · 5 comments

Comments

@Sevenanths
Copy link

Hello!

I was wondering if it would be possible to create a standalone version of pdf-to-markdown to use in other projects. The current project includes the generation of the page etc as well. Just the converter would be nice to have.

Example

PdfDocument = PDFJS.getDocument(...);  
Converter = new PdfToMarkDown();  
var Markdown = Converter.makeMarkdown(PdfDocument);

Would be forever grateful! Thanks in advance.

@jzillmann
Copy link
Owner

Hey @Sevenanths , you mean as a kind of library you can just install using npm, etc.. ?

@Sevenanths
Copy link
Author

Not even! Just a regular old JS file you can include in your HTML.

@jzillmann
Copy link
Owner

Hey @Sevenanths , neat idea, but that would take me some time since i still consider myself a js newbie... And since i've currently no use for, i wouldn't invest time into it... But if you find somebody who is willing to work on it, i could give support to him!

@morsmodr
Copy link

I can help take this one sometime in July. What do you think @jzillmann

@jzillmann
Copy link
Owner

Hey @morsmodr that would be neat yes.
Notice however that is kind of in the process, just with an major overhaul.

There is this branch: https://github.com/jzillmann/pdf-to-markdown/tree/modularize
The new code is distributed to 2 folders:

  • core - this holds the core code written in typescript, the plan is to publish this one on npm
  • ui - this is a replacement for the current UI and it makes use of the core

Right now ui and core are not cleanly separated. ui just reads the files from core, so that needs to be cleaned up as well.
Let me know what you think and if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants