Quantcast
Channel: HTML Renderer
Viewing all 693 articles
Browse latest View live

Created Unassigned: text-align:justify breaks words [9104]

$
0
0
if i have in html something like

<p style="text-align:justify">The html<B>rend</B>erer</p>
instead of rendering it as The html__rend__erer
it renders as The html [space] __rend__ [space] erer

Edited Unassigned: text-align:justify breaks words [9104]

$
0
0
if i have in html something like

<p style="text-align:justify">The html<B>rend</B>erer</p>
instead of rendering it as The html**rend**erer
it renders as The html [space] __rend__ [space] erer

Edited Unassigned: text-align:justify breaks words [9104]

$
0
0
if i have in html something like

<p style="text-align:justify">The html<B>rend</B>erer</p>
instead of rendering it as The html**rend**erer
it renders as The html [space] __rend__ [space] erer

This happens after every tag. The renderer leaves a space before and after every tag when align is justify

New Post: Html Generate Image Symbol sequence of confusion

$
0
0
Hi,
When I use RenderToImage() method generate the image , there is a problem images Content.

html:
string html = "<html><body><table><tr><td style=\"writing-mode:rl-tb;direction:rtl;text-align:right;\">מצופה : %55 אצטט / %45 אקרילי / למטה</td></tr></table><hr/><div align=\"left\" style=\"width: 380px;font-family:Clotex Universal Icon;font-size:30pt\">¶—∆ě∕</div></body></html>";
code:
System.Drawing.Image image = HtmlRender.RenderToImage(html);
var bitmap = new Bitmap(image);
bitmap.Save(@"D:\Test.png", ImageFormat.Png);
genarete image:
Image

However, the correct display should be as follows:
Image

How solve it?

New Post: None of the provided assemblies can be loaded in the Visual Studio Toolbox

$
0
0
Hi

I was using the HtmlRenderer v1.4.11.0, and now I've tried to update to the last version 1.5.0.6.

The first disgusting problem I found is that I was unable to load the winforms dll into the Visual Studio Toolbox to reference the user-controls, none of the provided dlls can be loaded inside the toolbox by dragging the file inside.

More than that, I found that they can be manually loaded by using the internal toolbox item manager (right click in a category tab > Choose items...) but then, when I try to drag the loaded component into a form, an exception occurs.

If your assemblies still contains components, then why are not loaded when dragging the dll files inside the component toolbox in Visual Studio like any other dll containing a component?.

What happened since v1.4.11.0? why your user-controls can't be loaded as normally? CAN'T USE THEM so just can't build an user-interface with your user-controls (at design time I mean).

I've tested it in Visual Studio 2013 Ultimate, with v1.5.0.5 happens exactlly the same.

New Post: None of the provided assemblies can be loaded in the Visual Studio Toolbox

$
0
0
I found the problem.

Now the user-control is distributed with one dll dependency, so to be able to load the winforms components the "core" dll should exists in the same directory.

So please put a readme.txt to make things clear with the deployment structure because is totally unclear, what is the purpose of the PdfSharp assembly for example in the context of the Html Renderer control?. Totally unclear, it makes people confussing like I did.

Thanks for read

New Post: Html Generate Image Symbol sequence of confusion

$
0
0

I found a problem.

If I set the Image Size, the generate Image display normal.
System.Drawing.Image image = HtmlRender.RenderToImage(html, new System.Drawing.Size(400, 200));

Now the problem is that I don't know the height of the image.

How can I calculate the height of html?

Created Unassigned: Image alignment [9105]

$
0
0
First of all, amazing work. The resized images work great. Thank you so much. One last issue I'm facing is that an image inside a table row and the style element has values "float: right". This does not seem to work as the images are always left aligned. Is there a fix for this

Created Unassigned: mailto support [9106]

$
0
0
Please add support for "mailto:" anchors.

Commented Unassigned: mailto support [9106]

$
0
0
Please add support for "mailto:" anchors.
Comments: Ok, it was only a issue with my pc (not assigned app to url:mailto protocol).

Commented Unassigned: HTML Pages with table spanning multiple pages not rendered completely for PDF generation. [9058]

$
0
0
I am currently working with HTML Renderer, which is superb, seamlessly fast than other PDF generator available. I experienced it's fast pdf generation too.

But while dealing with HTML having HTML which spans across multiple pages i faced some problems like given below:

1. incomplete PDF generated on only first page, All remaining pages remains blank.

I Have provided PDF generated. Please look through it & suggest me something to avoid or correct this error.

In addition i have tested the demo provided with the source code. in which html which containing tables are not generate PDF completely. Please check Tables Section to generate PDF, See bottom Table in generated PDF. To workaround it i am trying to generate table layout using divs which works for table spanning multiple pages but generating complex table structure using supported CSS tags is not working correctly.

tmp37F8.pdf --- generated by HtmlRenderer WinForms Demo.exe

Comments: Did you come up with a solution to this? I am having a similar problem

Commented Unassigned: PDF rendering new page issue [9069]

$
0
0
Faced issue with rendering document. Line is splitted into two pages. See attached image![Image](http://s15.postimg.org/uvch2zy63/bug.png)
Comments: Did you ever find a solution to this? I am having the same problem.

New Post: How to use the HTML Renderer in Windows 10 UWP?

$
0
0
The start page of this project suggests that the HTML Renderer can be used in Windows "Metro". But I don't find any information on how to use the controls in a Windows 10 UWP App.

It seems like the Windows 10 UWP controls are not implemented (yet)?

New Post: Pagination

$
0
0
I was wondering if HTMLRenderer supports any form of page numbers.
Any pointers are welcome, as I could not find anything about that.

And Thanks for the great tool!

Created Unassigned: Azure Website [9107]

$
0
0
Hi,
I am trying to use HtmlRenderer.PdfSharp in Azure. It works perfectly right on local computer, but once deployed on an Azure WebSite (no VM, Web App), I keep getting the following error :

Cannot save a PDF document with no pages.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Stack Trace:
[InvalidOperationException: Cannot save a PDF document with no pages.]
PdfSharp.Pdf.PdfDocument.DoSave(PdfWriter writer) +769
PdfSharp.Pdf.PdfDocument.Save(Stream stream, Boolean closeStream) +257

Source code is pretty simple actually, for testings I have :
MemoryStream ms = new MemoryStream();
StringWriter wr = new StringWriter();
using (HtmlTextWriter writer = new HtmlTextWriter(wr))
{

writer.AddStyleAttribute(HtmlTextWriterStyle.FontFamily, "Arial");
writer.AddStyleAttribute(HtmlTextWriterStyle.FontSize, "22pt");
writer.AddStyleAttribute(HtmlTextWriterStyle.FontWeight, "bold");
writer.RenderBeginTag("p");

writer.Write("Ordre de mission");
writer.RenderEndTag();

using (PdfDocument pdf = PdfGenerator.GeneratePdf(wr.ToString(), PageSize.A4))
{
pdf.Save(ms, false);
}
}

Thank you for your help!
Pierre

Commented Unassigned: Image alignment [9105]

$
0
0
First of all, amazing work. The resized images work great. Thank you so much. One last issue I'm facing is that an image inside a table row and the style element has values "float: right". This does not seem to work as the images are always left aligned. Is there a fix for this
Comments: I am also having this issue. :-(

New Post: Debugging Generated PDFs

$
0
0
Yes! that exatly the problem i having.
It manifests only when generating the PDF.
In the viewer it looks fine.

It just refuses to work :(

New Post: Debugging Generated PDFs

$
0
0
Chagui wrote:
Yes! that exatly the problem i having.
It manifests only when generating the PDF.
In the viewer it looks fine.

It just refuses to work :(
Nevermind, it worked with the latest version from github.

New Comment on "Documentation"

$
0
0
Hi can anyone please give me the sample code snippet for use external css to generate pdf form HTML.

New Post: Binding BaseStylesheet and updating it

$
0
0
Hi there,

I am using the WPF version of the HtmlPanel control - and I love it, except for this one problem I have.

I have a stylesheet that might change (user configures a different theme), but when I update the property, nothing happens.

Now, if I resize the window, causing the control to redraw itself, THEN it will do so with the new stylesheet.

Is there a way to properly have it redraw itself whenever there is a change to the bound BaseStylesheet property? It would of course be lovely if it could do that itself...
Viewing all 693 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>