Skip to content

ENABLED SAVING HTML AS EMF FILE (VECTORIAL IMAGE): #35

Merged
ArthurHub merged 1 commit intoArthurHub:masterfrom
jeromerg:master
Dec 6, 2015
Merged

ENABLED SAVING HTML AS EMF FILE (VECTORIAL IMAGE): #35
ArthurHub merged 1 commit intoArthurHub:masterfrom
jeromerg:master

Conversation

@jeromerg
Copy link
Contributor

@jeromerg jeromerg commented Dec 3, 2015

Added

  • HtmlRender.RenderToMetafile(...)
  • MetafileExtensions.SaveAsEmf(...) method

So that you can export an html document to vector-image file (emf/wmf) as following:

Metafile image = HtmlRender.RenderToMetafile(html);
MetafileExtensions.SaveAsEmf(image, "c:\temp\myEmfFile.emf");

This new feature is not covered by any unit test / test.
It is just a suggestion: I use similar code for the documentation of NCase. It allows to generate vector-based images, which can be inserted into powerpoint slides, without taking care of resolution/pixelization.

…enderToMetafile(...) and MetafileExtensions.SaveAsEmf(...) extension method
ArthurHub added a commit that referenced this pull request Dec 6, 2015
ENABLED SAVING HTML AS EMF FILE (VECTORIAL IMAGE):
@ArthurHub ArthurHub merged commit 08a16b6 into ArthurHub:master Dec 6, 2015
@ArthurHub
Copy link
Owner

nice, thx.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants