layoutfarm / htmlrenderer Goto Github PK
View Code? Open in Web Editor NEWC# HTML Layout and HTML Rendering Engine
Home Page: http://layoutfarm.github.io/HtmlRenderer/
License: Other
C# HTML Layout and HTML Rendering Engine
Home Page: http://layoutfarm.github.io/HtmlRenderer/
License: Other
make CsQuery works with our HtmlRenderer
The initial problems with the case of filenames
https://htmlrenderer.codeplex.com/workitem/9045
was fixed, but
There are more incomplete features:
https://github.com/prepare/HTML-Renderer/issues/9
We separate parser/dom to new project -> LayoutFarm.WebDom
choices
like ...
adds fastcoloredtextbox as control
pls add something to create custom elements that replaces own elements with fixed html like react or webcomponents
implement CSSOM?
see ...
http://dev.w3.org/csswg/cssom
https://github.com/NV/CSSOM
I've managed to build and run the project, and have a few questions:
Thanks!
see https://github.com/mono/SkiaSharp
SkiaSharp surface ,
early preview,
I have some bugs to fix.
Big thanks goto migueldeicaza for his SkiaSharp and others on Skia and SkiaSharp contributors!
compare with current gdi+ surface
and this is acid1 reference on wikipedia
(from https://en.wikipedia.org/wiki/Acid1)
spec:
1.
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf
from http://www.mactech.com/articles/mactech/Vol.15/15.09/PDFIntro/index.html
(Pdf1.3)
b closepath, fill,and stroke path.
B fill and stroke path.
b* closepath, eofill,and stroke path.
B* eofill and stroke path.
BI begin image.
BMC begin marked content.
BT begin text object.
BX begin section allowing undefined operators.
c curveto.
cm concat. Concatenates the matrix to the current transform.
cs setcolorspace for fill.
CS setcolorspace for stroke.
d setdash.
Do execute the named XObject.
DP mark a place in the content stream, with a dictionary.
EI end image.
EMC end marked content.
ET end text object.
EX end section that allows undefined operators.
f fill path.
f* eofill Even/odd fill path.
g setgray (fill).
G setgray (stroke).
gs set parameters in the extended graphics state.
h closepath.
i setflat.
ID begin image data.
j setlinejoin.
J setlinecap.
k setcmykcolor (fill).
K setcmykcolor (stroke).
l lineto.
m moveto.
M setmiterlimit.
n end path without fill or stroke.
q save graphics state.
Q restore graphics state.
re rectangle.
rg setrgbcolor (fill).
RG setrgbcolor (stroke).
s closepath and stroke path.
S stroke path.
sc setcolor (fill).
SC setcolor (stroke).
sh shfill (shaded fill).
Tc set character spacing.
Td move text current point.
TD move text current point and set leading.
Tf set font name and size.
Tj show text.
TJ show text, allowing individual character positioning.
TL set leading.
Tm set text matrix.
Tr set text rendering mode.
Ts set super/subscripting text rise.
Tw set word spacing.
Tz set horizontal scaling.
T* move to start of next line.
v curveto.
w setlinewidth.
W clip.
y curveto.
TABLE 1: PDF Page Markup Operators
(Note: Equivalent PostScript operators are in boldface.)
Hello
@bjorn-ali-goransson,
and those who come from AngleSharp/AngleSharp.Css#2
If your code meet these ...
It makes me easier to integrate your code back to my repo.
I also try to figure out
How to support more that 1 Html-Css Dom/Parser frameworks.
eg.
so lets create some abstraction.
Please don't throw other frameworks away :)
Feel free to create issues about the HtmlRenderer here.
https://github.com/prepare/HTML-Renderer/blob/master/Source/HtmlRenderer.Demo/Program.cs#L40
the platform can be checked as in this snippet:
http://stackoverflow.com/questions/5116977
private static bool IsLinux
{
get
{
int p = (int) Environment.OSVersion.Platform;
return (p == 4) || (p == 6) || (p == 128);
}
}
must pass 3 tests
Acid 1,2,3
http://www.acidtests.org/
Hi - could you please add a few lines in README.md explaining how to build the project and sub-projects? Much appreciated!
must pass 3 tests
Acid 1,2,3
http://www.acidtests.org/
2 boxes that linked together, may live in different host,
In the way we approach Typography project
Hello
I have this error I my widnows 10 when i tried to run the demo. VS2015 and VS2017:
System.DllNotFoundException occurred
HResult=0x80131524
Message=Unable to load DLL 'myft.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Other thing could you write example to convert html to image? I need to render piece of HTML to image to be used in asp.net apps and i would like to use google fonts with link tag
I used before https://github.com/ArthurHub/HTML-Renderer but the HTML and css is poor for what I need
Cheers
PD:
Other:
System.TypeInitializationException occurred
HResult=0x80131534
Message=The type initializer for 'LayoutFarm.UI.UISurfaceViewportControl' threw an exception.
Source=
StackTrace:
Inner Exception 1:
TypeInitializationException: The type initializer for 'LayoutFarm.UI.UIPlatformWinForm' threw an exception.
Inner Exception 2:
BadImageFormatException: Could not load file or assembly 'PixelFarm.Drawing.Skia, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Size: 2304
System:
Linux
Initializing threaded X11: 1.
Display connection: 33744256, Screen count: 1
Detected configuration: Linux / Mono
Initializing threaded X: success.
Initializing threaded X: success.
Creating default GraphicsMode (24, 16, 0, 0, 0, 2, False).
Loaded assembly: /var/calculate/remote/distfiles/egit-src/HTML-Renderer/Source/Test1_CoreVisual_New/bin/Debug/MiniAgg.Complements.dll
System.TypeInitializationException: An exception was thrown by the type initializer for PixelFarm.Drawing.DrawingGL.MyCanvasGL ---> System.EntryPointNotFoundException: SelectObject
at (wrapper managed-to-native) Win32.MyWin32:SelectObject (intptr,intptr)
at PixelFarm.Drawing.WinGdi.BasicGdi32FontHelper.MeasureCharWidths (IntPtr hFont, System.Int32[]& charWidths, FontABC[]& abcSizes) [0x00025] in /var/calculate/remote/distfiles/egit-src/HTML-Renderer/Source/Deps/PixelFarm.Drawing.Platforms/PixelFarm.Drawing.Gdi/Implementation/MyFontInfo.cs:42
at PixelFarm.Drawing.WinGdi.MyFontInfo..ctor (PixelFarm.Drawing.Font f, Int32 lineHeight, Single ascentPx, Single descentPx, Single baseline, PixelFarm.Drawing.WinGdi.BasicGdi32FontHelper gdiFontHelper) [0x00065] in /var/calculate/remote/distfiles/egit-src/HTML-Renderer/Source/Deps/PixelFarm.Drawing.Platforms/PixelFarm.Drawing.Gdi/Implementation/MyFontInfo.cs:112
at PixelFarm.Drawing.WinGdi.FontStore.RegisterFont (System.Drawing.Font newFont, FontKey fontKey) [0x0009c] in /var/calculate/remote/distfiles/egit-src/HTML-Renderer/Source/Deps/PixelFarm.Drawing.Platforms/PixelFarm.Drawing.Gdi/Implementation/FontStore.cs:164
This is an Active Repo :)
but the hottest developing branch is on prepare/HTML-Renderer
https://github.com/prepare/HTML-Renderer
must pass 3 tests
Acid 1,2,3
http://www.acidtests.org/
Hi,
I am trying to build the project and I have many broken references and there are several projects unavailable. Is this guide still valid?
https://github.com/LayoutFarm/HtmlRenderer/wiki/3.-Build-The-Project
see ideas on ...
http://webcomponents.org/
https://developer.mozilla.org/en-US/Apps/Tools_and_frameworks/Web_components
http://mozbrick.github.io/
http://customelements.io/
http://w3c.github.io/webcomponents/spec/shadow/
http://w3c.github.io/webcomponents/spec/custom/
https://html.spec.whatwg.org/multipage/scripting.html#the-template-element
http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/
Downloadable already built "Any CPU" dll's
First I'm not a native English speaking person.
so you can correct it where it is wrong grammar/ wrong intention or not proper.
You CAN HELP ME create the topics that you want to know.
so I will create a description for it
:)
plan : add features, use MiniAgg!
check minipdf, or pdfium
Unhandled Exception:
System.EntryPointNotFoundException: DeleteDC
at (wrapper managed-to-native) Win32.MyWin32:DeleteDC (intptr)
at PixelFarm.Drawing.WinGdi.BasicGdi32FontHelper.Finalize () [0x00007] in /var/calculate/remote/distfiles/egit-src/HTML-Renderer/Source/Deps/PixelFarm.Drawing.Platforms/PixelFarm.Drawing.Gdi/Implementation/MyFontInfo.cs:20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.