|
 |
|
|
 |
|
|
 |
|
|
Hi, I am using a PDfizer project. When I browse a page. I am getting an error regarding NTidy.dll. Following is the stack trace.
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 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.
Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
I am setting all rights from IIS regaring ASPNET, Network Service but still it is not working. If any one can provide a solution, I will be very thankful.
Thanks, Khurram
|
| Sign In·View Thread·PermaLink | 1.50/5 (4 votes) |
|
|
|
 |
|
|
Thanks for this great library.
But while trying to run this solution I got the following error:
System.IO.FileNotFoundException was unhandled Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)" Source="Pdfizer" StackTrace: at Pdfizer.HtmlToPdfConverter..ctor() at PdfizerConsole.Class1.Main(String[] args) in D:\PDF\Pdfizer_src_v10\HtmlToPdf\PdfizerConsole\Class1.cs:line 77 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Any Help?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Well, I guess u must be running it on x64, if that is, set your project output to x86 and try again.
I had same error, and doing this eat the error.
Sameers
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
i m using this converter but in code three refrence are missing 1. itextsharp 2. ntidy 3. icsharpcode.sharpziplib, first two i got, but can u say abt third one frm where i cant get this.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Hi,
I downloaded your project Pdfizer and include the dlls in my project of DotNetNuke but when i run the project,it show the following error.
error BC30392: 'Catch' cannot catch type 'exception' because it is not 'System.Exception' or a class that inherits from 'System.Exception'."} System.Exception i have using the System.Exception already for this. It is is due to NTidy.dll. when i exclude this dll,the error:NTidy.dll is not fond. Questiones. 1)Please tell me that whether NTidy.dll is corrrect or not?. 2)Please give me the proper solution for using the NTidy.dll in DotNetNuke Version 04.05.03.?
Thanks
Tariq
|
| Sign In·View Thread·PermaLink | 2.63/5 (4 votes) |
|
|
|
 |
|
|
Hi,
The HTML to PDF converter for .NET from http://www.dotnet-reporting.com or the HTML to PDF .NET Library from http://www.winnovative-software.comis what you need. It's pure .NET library, it doesn't use a printer driver. There is also a free html to pdf converter application built on top of this library. The conversion can be done with only a few lines of code:
PdfConverter pdfConverter = new PdfConverter(); pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4; pdfConverter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait; pdfConverter.PdfDocumentOptions.PdfCompressionLevel = PdfCompressionLevel.Normal; pdfConverter.PdfDocumentOptions.GenerateSelectablePdf = true; pdfConverter.PdfDocumentOptions.ShowFooter = false; pdfConverter.PdfDocumentOptions.ShowHeader = false; pdfConverter.LicenseFilePath = Server.MapPath(@"~/Bin"); byte[] downloadBytes = pdfConverter.GetPdfFromUrlBytes(MyURL);
Regards,
Razva
|
| Sign In·View Thread·PermaLink | 1.46/5 (12 votes) |
|
|
|
 |
|
|
Stop product plugging. We will find you if we need you and willing to pay. Just don't plug your products in code project. Shame on you Winnovative.
|
| Sign In·View Thread·PermaLink | 2.67/5 (3 votes) |
|
|
|
 |
|
|
Hi,
Pdfizer is a great free tool. However, it only works for very simple HTML. I needed a solid HTML To PDF Converter and I found one here: www.html-to-pdf.net[^]
The only problem is, that is not free. Do you know any other professional tools that cost less or that are free?
Thanks, Florentin
|
| Sign In·View Thread·PermaLink | 2.00/5 (8 votes) |
|
|
|
 |
|
|
here we go. another product plug by some shameless company. get a grip, this is codeproject and peoplelook for inspiration to code and not desperate to buy something with a shiny credit card at hand. if we wanted to buy something product we wouldn't be looking at code project for it isnt it. Please stop plugging your, yet another ...., product.
|
| Sign In·View Thread·PermaLink | 3.00/5 (4 votes) |
|
|
|
 |
|
|
In the HtmlToPdfConverter class the following test is preformed
// append .pdf if necessary. string fileName = outputFileName; if (!fileName.EndsWith("pdf")) fileName+=".pdf"; This test will not do what is intended in the case that the user sends in a filename that ends with pdf, for example "my_file_pdf" will result in a file being created without a filetype, which is ofcourse legal, but impactical. Simply changing the test to
// append .pdf if necessary. string fileName = outputFileName; if (!fileName.EndsWith(".pdf")) fileName+=".pdf"; Would result in the standard windows naming scheme even for the example given, i.e "my_file_pdf.pdf"
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
HI. I'm trying to run an example code to watch pdf generator running... in the code I should specify the web service url but I don't know what URL i shoud put... It should be something like
// specify the web service URL String Url = "http://localhost:8080/...
How can I know this??
|
| Sign In·View Thread·PermaLink | 1.67/5 (2 votes) |
|
|
|
 |
|
|
When i try to generate a pdf in line html2pdf.Run(reader.ReadToEnd());
give me this error:
Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.5.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Thanks
MD
|
| Sign In·View Thread·PermaLink | 2.29/5 (5 votes) |
|
|
|
 |
|
|
There is no pdf produced except the html source for the following case:
html2pdf.Run( new Uri(@"file:///C:/Temp/test.htm") );
Where test.htm is a copy of (https://somesite.com/page) with <base href="https://somesite.com/"/> in html header section.
|
| Sign In·View Thread·PermaLink | 2.50/5 (6 votes) |
|
|
|
 |
|
|
It is a wonderful tool. But I am having problem with the width of the text. It looks like somewhere pdf document is setting the width of the page or margin and I am unable to figure out where. I will really appreciate any help in this regard.
Thanks,
Afzal Farooqui
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
|
Hi, what happens with html entities: á, ñ, etc...? I´m using it for convert my pdf files, but no work. Could you help me about?
Nicolás Piqueras
|
| Sign In·View Thread·PermaLink | 2.33/5 (2 votes) |
|
|
|
 |
|
|
I have a mathcad generated html document
<code> <html xmlns:mcd="urn:schemas-mathsoft-com:mathcad" xmlns:m="http://www.w3.org/1998/Math/MathML"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Template</title> <style type="text/css"> body { background : #ffffff } .equation { margin-top: 0.5em; margin-bottom: 1em } .Normal { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:10pt } .Heading_1 { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:14pt; font-weight:bold } .Heading_2 { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:12pt; font-weight:bold; font-style:italic } .Heading_3 { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:12pt } .Paragraph { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:10pt; text-indent:28px } .List { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:10pt; margin-left:19px; text-indent:-19px } .Indent { font-family:Arial,sans-serif; x-mcd-font-charset ; font-size:10pt; margin-left:144px } .Title { font-family:Times New Roman,sans-serif; x-mcd-font-charset ; font-size:24pt; font-weight:bold; text-align:center } .Subtitle { font-family:Times New Roman,sans-serif; x-mcd-font-charset ; font-size:18pt; text-align:center } </style> <script id="clientEventHandlersJS" language="javascript"> <!-- //--> </script> </head> <body > <div style="position:absolute;top:16;left "> <layer > </layer> </div> <div style="position:absolute;top:35;left:168;width:87"> <layer width="87"> <span class="Normal"> <u>Actual Values</u></span> </layer> </div> <div style="position:absolute;top:35;left:280;width:100"> <layer width="100"> <span class="Normal"> <u>Alternative Units</u></span> </layer> </div> <div style="position:absolute;top:67;left:8;width:80"> <layer width="80"> <span class="Normal"> Design Code</span> </layer> </div> <div style="position:absolute;top:67;left:168;width:84"> <layer width="84"> <span class="Normal"> PD5500:2006</span> </layer> </div> <div style="position:absolute;top:91;left:8;width:102"> <layer width="102"> <span class="Normal"> Design Pressure</span> </layer> </div> <div style="position:absolute;top:91;left:168"> <layer > <img src="./Template_images/IMG0049_30944968.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:91;left:280"> <layer > <img src="./Template_images/IMG0050_30944984.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:91;left:392"> <layer > <img src="./Template_images/IMG0065_30945000.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:84;left:512"> <layer > <img src="./Template_images/IMG0052_30945015.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:115;left:8;width:122"> <layer width="122"> <span class="Normal"> Design Temperature</span> </layer> </div> <div style="position:absolute;top:115;left:168"> <layer > <img src="./Template_images/IMG0056_30945078.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:115;left:280"> <layer > <img src="./Template_images/IMG0057_30945093.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:115;left:392"> <layer > <img src="./Template_images/IMG0066_30945109.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:139;left:8;width:46"> <layer width="46"> <span class="Normal"> MDMT</span> </layer> </div> <div style="position:absolute;top:139;left:168"> <layer > <img src="./Template_images/IMG0063_30945125.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:139;left:280"> <layer > <img src="./Template_images/IMG0064_30945140.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:139;left:392"> <layer > <img src="./Template_images/IMG0067_30945156.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:163;left:8;width:124"> <layer width="124"> <span class="Normal"> Corrosion Allowance</span> </layer> </div> <div style="position:absolute;top:163;left:168"> <layer > <img src="./Template_images/IMG0070_30945171.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:163;left:280"> <layer > <img src="./Template_images/IMG0071_30945203.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:187;left:8;width:82"> <layer width="82"> <span class="Normal"> Radiography </span> </layer> </div> <div style="position:absolute;top:187;left:168"> <layer > <img src="./Template_images/IMG0074_30945218.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:215;left:8;width:125"> <layer width="125"> <span class="Normal"> <font size="4"><b><i><u>Materials</u></i></b></font></span> </layer> </div> <div style="position:absolute;top:241;left:8;width:244"> <layer width="244"> <span class="Normal"> <font size="3"><u>Shell Material: ASTM A182 F316</u></font></span> </layer> </div> <div style="position:absolute;top:275;left:8;width:190"> <layer width="190"> <span class="Normal"> <font size="3">Allowable stress at ambient</font></span> </layer> </div> <div style="position:absolute;top:268;left:192"> <layer > <img src="./Template_images/IMG0209_30945234.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:275;left:496;width:148"> <layer width="148"> <span class="Normal"> Enquiry Case 91 Table 2</span> </layer> </div> <div style="position:absolute;top:308;left:8;width:135"> <layer width="135"> <span class="Normal"> <font size="2">Allowable stress at DT</font></span> </layer> </div> <div style="position:absolute;top:300;left:192"> <layer > <img src="./Template_images/IMG0212_30945281.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:307;left:496;width:148"> <layer width="148"> <span class="Normal"> Enquiry Case 91 Table 2</span> </layer> </div> <div style="position:absolute;top:339;left:8;width:172"> <layer width="172"> <span class="Normal"> Allowable shear stress at DT</span> </layer> </div> <div style="position:absolute;top:339;left:192"> <layer > <img src="./Template_images/IMG0215_30945359.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:371;left:8;width:182"> <layer width="182"> <span class="Normal"> Allowable bearing stress at DT</span> </layer> </div> <div style="position:absolute;top:371;left:192"> <layer > <img src="./Template_images/IMG0217_30945375.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:403;left:8;width:237"> <layer width="237"> <span class="Normal"> <u>Gas Header Material: ASTM A182 F316</u></span> </layer> </div> <div style="position:absolute;top:435;left:8;width:166"> <layer width="166"> <span class="Normal"> Allowable stress at ambient</span> </layer> </div> <div style="position:absolute;top:428;left:192"> <layer > <img src="./Template_images/IMG0220_30945390.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:435;left:496;width:148"> <layer width="148"> <span class="Normal"> Enquiry Case 91 Table 2</span> </layer> </div> <div style="position:absolute;top:467;left:8;width:136"> <layer width="136"> <span class="Normal"> Allowable stress at DT</span> </layer> </div> <div style="position:absolute;top:460;left:192"> <layer > <img src="./Template_images/IMG0223_30945453.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:467;left:496;width:148"> <layer width="148"> <span class="Normal"> Enquiry Case 91 Table 2</span> </layer> </div> <div style="position:absolute;top:499;left:8;width:172"> <layer width="172"> <span class="Normal"> Allowable shear stress at DT</span> </layer> </div> <div style="position:absolute;top:499;left:192"> <layer > <img src="./Template_images/IMG0226_30945515.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:531;left:8;width:182"> <layer width="182"> <span class="Normal"> Allowable bearing stress at DT</span> </layer> </div> <div style="position:absolute;top:531;left:192"> <layer > <img src="./Template_images/IMG0228_30945531.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:563;left:8;width:259"> <layer width="259"> <span class="Normal"> <u>Retaining Ring Material: ASTM A312 TP316</u></span> </layer> </div> <div style="position:absolute;top:595;left:8;width:166"> <layer width="166"> <span class="Normal"> Allowable stress at ambient</span> </layer> </div> <div style="position:absolute;top:588;left:192"> <layer > <img src="./Template_images/IMG0231_30945546.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:595;left:496;width:148"> <layer width="148"> <span class="Normal"> Enquiry Case 91 Table 2</span> </layer> </div> <div style="position:absolute;top:627;left:8;width:136"> <layer width="136"> <span class="Normal"> Allowable stress at DT</span> </layer> </div> <div style="position:absolute;top:620;left:192"> <layer > <img src="./Template_images/IMG0234_30945703.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:627;left:496;width:148"> <layer width="148"> <span class="Normal"> Enquiry Case 91 Table 2</span> </layer> </div> <div style="position:absolute;top:659;left:8;width:172"> <layer width="172"> <span class="Normal"> Allowable shear stress at DT</span> </layer> </div> <div style="position:absolute;top:659;left:192"> <layer > <img src="./Template_images/IMG0237_30945765.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:691;left:8;width:182"> <layer width="182"> <span class="Normal"> Allowable bearing stress at DT</span> </layer> </div> <div style="position:absolute;top:691;left:192"> <layer > <img src="./Template_images/IMG0239_30945781.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:736;left "> <layer > </layer> </div> <div style="position:absolute;top:755;left:8;width:161"> <layer width="161"> <span class="Normal"> <u>Definitions of Abbreviations</u></span> </layer> </div> <div style="position:absolute;top:755;left:192;width:441"> <layer width="441"> <span class="Normal"> noml=Nominal value; mx=Maximum value; mn=Minimum value</span> </layer> </div> <div style="position:absolute;top:779;left:8;width:118"> <layer width="118"> <span class="Normal"> <u>Vessel Dimensions</u></span> </layer> </div> <div style="position:absolute;top:803;left:192"> <layer > <img src="./Template_images/IMG0157_30945875.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:803;left:360"> <layer > <img src="./Template_images/IMG0159_30945890.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:803;left:520"> <layer > <img src="./Template_images/IMG0134_30945906.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:811;left:8;width:106"> <layer width="106"> <span class="Normal"> Outside diameter</span> </layer> </div> <div style="position:absolute;top:835;left:192"> <layer > <img src="./Template_images/IMG0158_30945921.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:835;left:360"> <layer > <img src="./Template_images/IMG0160_30945937.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:835;left:520"> <layer > <img src="./Template_images/IMG0142_30945968.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:843;left:8;width:90"> <layer width="90"> <span class="Normal"> Inside diameter</span> </layer> </div> <div style="position:absolute;top:923;left:8;width:39"> <layer width="39"> <span class="Normal"> <b>Shell</b></span> </layer> </div> <div style="position:absolute;top:955;left:8;width:133"> <layer width="133"> <span class="Normal"> Thickness required at open end</span> </layer> </div> <div style="position:absolute;top:942;left:176"> <layer > <img src="./Template_images/IMG0264_30945984.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:963;left:368"> <layer > <img src="./Template_images/IMG0265_30946046.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:963;left:528;width:112"> <layer width="112"> <span class="Normal"> 3.5.1.2 a) (3.5.1-1)</span> </layer> </div> <div style="position:absolute;top:1019;left:8;width:115"> <layer width="115"> <span class="Normal"> Thickness provided</span> </layer> </div> <div style="position:absolute;top:998;left:176"> <layer > <img src="./Template_images/IMG0268_30946078.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:1019;left:368"> <layer > <img src="./Template_images/IMG0269_30946140.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:1059;left:8;width:87"> <layer width="87"> <span class="Normal"> <u>Design Check</u></span> </layer> </div> <div style="position:absolute;top:1059;left:176"> <layer > <img src="./Template_images/IMG0271_30946156.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:1059;left:368"> <layer > <img src="./Template_images/IMG0272_30946187.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:1059;left:424;width:217"> <layer width="217"> <span class="Normal"> 1 = satisfactory, 0 = Not satisfactory</span> </layer> </div> <div style="position:absolute;top:1107;left:8;width:88"> <layer width="88"> <span class="Normal"> Test pressure </span> </layer> </div> <div style="position:absolute;top:1092;left:176"> <layer > <img src="./Template_images/IMG0275_30946218.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:1107;left:368"> <layer > <img src="./Template_images/IMG0276_30946281.PNG" border="0"/> </layer> </div> <div style="position:absolute;top:1107;left:528;width:112"> <layer width="112"> <span class="Normal"> 5.8.5.1 a) (5.8.5-1)</span> </layer> </div> </body> </html> </code>
and a method that takes the file to generate a pdf but the pdf is always empty.
(I'm using studio 2005)
<code> 'create converter Dim html2pdf = New HtmlToPdfConverter() 'create a stream object Dim outputStream As New System.IO.FileStream(htmlFile.Replace(".htm", ".pdf"), FileMode.CreateNew) 'open new pdf file html2pdf.open(outputStream) 'read web page html2pdf.Run(New Uri(htmlFile)) 'close and finish pdf file. html2pdf.Close() </code>
An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.
|
| Sign In·View Thread·PermaLink | 1.60/5 (4 votes) |
|
|
|
 |
|
|
After a little looking it looks like one of the problems might be the layer tag but this doesn't solve everything.
An optimist's glass is half full. A pesimist's glass is half empty. An engineer goes and gets the right size glass.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
hey! can this be configure to convert from different language to pdf? for eg. chinese, malay and tamil...
teytey
|
| Sign In·View Thread·PermaLink | 2.73/5 (10 votes) |
|
|
|
 |
|
|
Hi All, This project is really very nice and impressive. Thanks to all the developers. I have been facing one problme in it. Everything is working fine with the code but I dont know why but the code is not working with table tag. I get tags like in the resultant pdf in stead of the table.
Am I missing any file of some thing else I have to do for this?
Plz let me know the solution if any one is having it.
Thank u all.
Chetan Ranpariya.
|
| Sign In· |
| | | |