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

Adding ability to extract a template CSS from a given PDF or image file #43

Open
document-intelligence opened this issue Aug 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@document-intelligence
Copy link

Genalog is great in generating a synthetic document from a given template, but coming up with a template is still a pain.

Wouldn't it be great if I can just point Genalog to a PDF or image, and ask it to synthesize more documents like that?

In other words, can we add the functionality of extracting a CSS template out of a given PDF/image, to complete the cycle?

Thanks!

Document Intelligence

@laserprec
Copy link
Contributor

laserprec commented Aug 16, 2021

Hi Ben! Thank you for your suggestions! I totally agree. This would be a great value added to boost Genalog’s utility!

For this feature, I think Layout Parser looks promising to do most of the heavy lifting for extracting layouts, however currently it does not support exporting layouts in HTML format (as of late, it exports layout information in JSON and csv. So there is some feature gaps to fill in before Genalog can consume it as html files.

I am not so aware of any existing document layout standards such that we can reuse/adopt to make this JSON to HTML conversion easy. Would love to get some suggestions if anyone reading this has experience in matter.

@laserprec laserprec added the enhancement New feature or request label Aug 16, 2021
@jgc128
Copy link
Contributor

jgc128 commented Aug 17, 2021

I'm pretty sure I saw some papers on covering a sketch to an HTML code. I'll have a look at it, it would be a great addition to Genalog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants