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

HTML Tag IMG #115

Open
edsontrick opened this issue Aug 15, 2018 · 2 comments
Open

HTML Tag IMG #115

edsontrick opened this issue Aug 15, 2018 · 2 comments

Comments

@edsontrick
Copy link

Is it possible to implement images insertion with IMG tag?

For example, I have a big HTML that I already transform to PDF, and now, I need some feature to transform the same HTML to Doc. This HTML has some tags with external url.

@stadelmanma
Copy link
Collaborator

stadelmanma commented Aug 16, 2018

I would certainly say it is possible to do and implementing the AST class would probably be pretty easy for basic usage. However, the main reason I did not implement it was that inserting an image into a document requires a very large amount of XML markup. This test fixture is an example of the content required for a very simple image with no formatting or alterations.

Now nearly all of that XML is appears to simply be boilerplate markup that doesn't really change from image to image for my version of Microsoft Word. I have no idea how portable that markup is across newer and older versions of MS Word nor the full breadth of attributes that would need to be supported to cover the majority of use cases.

If this is something you would want to tackle and submit a PR for, I would be happy to provide input along the way and merge it in if the image insertion code is generalized enough to cover a majority of the use cases.

@Amnesthesia
Copy link

Has anybody got a basic image node working for HTML conversion?

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