I ended up using a different pdf library that doesn't have this problem and works perfectly: http://selectpdf.com/community-edition/
↧
New Post: Images don't display in PDF
↧
Created Unassigned: New Method to PdfGenerator [9113]
Hello to everyone!
I needed a new method that could parse a html to a PdfPage instead of a PdfDocument (In my case, the pdf had different content in each page). Since I didn't find, i downloaded the source and created it.
It just added the parsed pdf page to an existing PdfDocument.
I think you should implement that :)
I needed a new method that could parse a html to a PdfPage instead of a PdfDocument (In my case, the pdf had different content in each page). Since I didn't find, i downloaded the source and created it.
It just added the parsed pdf page to an existing PdfDocument.
I think you should implement that :)
↧
↧
Created Unassigned: Q: Unicode literals rendering [9114]
Hi there
I am very happily using your HTMLRenderer, especially the HTMLPanel, and it works fine, so far.
Now, I am looking how to support the rendering of special unicode things such as smilies like http://emojipedia.org/smiling-face-with-open-mouth-and-smiling-eyes/ .
Is there some way to render these in an HTMLPanel? Are there settings to push something like that or "U+1F1E7"?
Right now, I only get two broken squares ^^
I am probably missing something and am happy for every hint.
Thanks a lot in advance
I am very happily using your HTMLRenderer, especially the HTMLPanel, and it works fine, so far.
Now, I am looking how to support the rendering of special unicode things such as smilies like http://emojipedia.org/smiling-face-with-open-mouth-and-smiling-eyes/ .
Is there some way to render these in an HTMLPanel? Are there settings to push something like that or "U+1F1E7"?
Right now, I only get two broken squares ^^
I am probably missing something and am happy for every hint.
Thanks a lot in advance
↧
Commented Unassigned: PDF doesn't render tables or divs properly [9073]
If you have a table with tags within the td's, it doesn't render the contents of the inner tags. Also style="float:left" does not work on div or any other tags so there is currently no way to place 2 pieces of info next to each other while using styling.
E.g. in the following example, the contents of the <b> tag will not be rendered in the PDF. The HTML viewer contains the values, but when converted to PDF they disappear.
<table>
<tr>
<td>
<b>Some Bold Text</b> Some Normal Text
</td>
</tr>
</table>
Comments: I ran into this issue today too. using "style=font-weight:bold;" will render the bolds. There's something wrong with the rendering engine. I used this sample html from the 00.Intro.htm file. Which renders the bolds correctly. <td> Everything you see on this panel (see samples on the left) is <b>custom-painted</b> by the <b>HTML Renderer</b>, including tables, images, links and videos.<br /> This project allows you to have the rich format power of HTML on your desktop applications without <b>WebBrowser</b> control or <b>MSHTML</b>.<br /> The library is <b>100% managed code</b> without any external dependencies, the only requirement is <b>.NET 2.0 or higher</b>, including support for Client Profile. </td> If you remove all the text before the first <b>, none of the first sentence will render. I banged my head on this for several hours, thought it was something I was doing wrong. Now I found this posting from 2015, describing the same issue.
E.g. in the following example, the contents of the <b> tag will not be rendered in the PDF. The HTML viewer contains the values, but when converted to PDF they disappear.
<table>
<tr>
<td>
<b>Some Bold Text</b> Some Normal Text
</td>
</tr>
</table>
Comments: I ran into this issue today too. using "style=font-weight:bold;" will render the bolds. There's something wrong with the rendering engine. I used this sample html from the 00.Intro.htm file. Which renders the bolds correctly. <td> Everything you see on this panel (see samples on the left) is <b>custom-painted</b> by the <b>HTML Renderer</b>, including tables, images, links and videos.<br /> This project allows you to have the rich format power of HTML on your desktop applications without <b>WebBrowser</b> control or <b>MSHTML</b>.<br /> The library is <b>100% managed code</b> without any external dependencies, the only requirement is <b>.NET 2.0 or higher</b>, including support for Client Profile. </td> If you remove all the text before the first <b>, none of the first sentence will render. I banged my head on this for several hours, thought it was something I was doing wrong. Now I found this posting from 2015, describing the same issue.
↧
Created Unassigned: HtmlLabel autosizes too small on 4k monitor, truncating the render, if app is not DpiAware [9115]
On a 4k monitor...
If you create a from-scratch winforms app, and drop in an HtmlLabel, the control will render correctly in the designer, but it will be sized 1/4 as large as it needs to be at runtime. Since the HTML rendering itself is in correct proportion, this means most of it is outside the control and is truncated.
If DpiAware is added to the manifest, the autosize feature works correctly again.
↧
↧
Created Unassigned: PDF is corrupted [9116]
Please, I'm trying to convert a PDF file using the simplest implementation of HTML:
```
Dim outputDocument = PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.A4)
```
However, the PDF file is generated with failures.
I'm sending the source html attached.
Thank you very much.
```
Dim outputDocument = PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.A4)
```
However, the PDF file is generated with failures.
I'm sending the source html attached.
Thank you very much.
↧
Commented Unassigned: PDF is corrupted [9116]
Please, I'm trying to convert a PDF file using the simplest implementation of HTML:
```
Dim outputDocument = PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.A4)
```
However, the PDF file is generated with failures.
I'm sending the source html attached.
Thank you very much.
Comments: This is the resulting PDF
```
Dim outputDocument = PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.A4)
```
However, the PDF file is generated with failures.
I'm sending the source html attached.
Thank you very much.
Comments: This is the resulting PDF
↧
Created Unassigned: Persian word appeared incorrect [9117]
Hi Arthur
Thanks for your lovely htmlRenderer
My Problem is persian word that shown incorrectly. In fact, when I use a sentence in any tag, letters of words displayed separately.
For Example, when I want to write word 'سلام', it shows 'س ل ا م'.
Please Fix this issue.
Thanks in advanced!
Thanks for your lovely htmlRenderer
My Problem is persian word that shown incorrectly. In fact, when I use a sentence in any tag, letters of words displayed separately.
For Example, when I want to write word 'سلام', it shows 'س ل ا م'.
Please Fix this issue.
Thanks in advanced!
↧
Reviewed: 1.5.0.6 (Mar 01, 2017)
Rated 5 Stars (out of 5) - This works perfectly! Thx a lot!
↧
↧
Reviewed: 1.5.0.6 (Mar 01, 2017)
Rated 5 Stars (out of 5) - This works perfectly! I use it to make a componant grid from HTML...
Thx a lot!
↧
New Comment on "Documentation"
Hi! Great work on this!!!
I have only one problem: One of my HTML contains inline images:
<img alt="Image left : 12px, top : 0px" src="data:image/png;base64,iVBORw0KGgoAAAANAASUVORK5......CYII=" style="position:absolute;left:12px;top:0px;border-width:0px;"></div>
Unfortunately the resulting image is completely blank (also the rest of the HTML is not converted).
Am i missing some special configuration? I use plain an simple HtmlRender.RenderToImage(html);
Any help is greatly appreciated!
Michael
↧
New Post: How to Select all text / copy like the right click context menu?
The right click Context Menu allows to select all and copy? Anyway to expose that programmatically? I've seen the references to GetHtml(), but that only gets the html, i'm wanting just the text, like the Selectall/Copy
Thanks
-Tom
Thanks
-Tom
↧
New Post: How to get access to path?
hi,
i get an error in my project.
System.UnauthorizedAccessException: ''C:\Projec\Pdf" access to path denied.
here is the details;
System.UnauthorizedAccessException occurred
HResult=0x80070005
Message=''C:\Projec\Pdf" yoluna erişim reddedildi.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at TMatik.BaşlangıçEkranı.PdfSharpConvert(String html) in C:\Users\Wolver\Desktop\Access İş (Geliştirme)\İSG\Başlangıç.cs:line 1374
at TMatik.BaşlangıçEkranı.button4_Click(Object sender, EventArgs e) in C:\Users\Wolver\Desktop\Access İş (Geliştirme)\İSG\Başlangıç.cs:line 1389
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at TMatik.Program.Main() in C:\Users\Wolver\Desktop\Access İş (Geliştirme)\İSG\Program.cs:line 53
i get an error in my project.
System.UnauthorizedAccessException: ''C:\Projec\Pdf" access to path denied.
here is the details;
System.UnauthorizedAccessException occurred
HResult=0x80070005
Message=''C:\Projec\Pdf" yoluna erişim reddedildi.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at TMatik.BaşlangıçEkranı.PdfSharpConvert(String html) in C:\Users\Wolver\Desktop\Access İş (Geliştirme)\İSG\Başlangıç.cs:line 1374
at TMatik.BaşlangıçEkranı.button4_Click(Object sender, EventArgs e) in C:\Users\Wolver\Desktop\Access İş (Geliştirme)\İSG\Başlangıç.cs:line 1389
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at TMatik.Program.Main() in C:\Users\Wolver\Desktop\Access İş (Geliştirme)\İSG\Program.cs:line 53
↧
↧