profile
viewpoint

Ask questionsError converting HTML to PDF

Hi, I am trying to convert html to pdf using wkhtmltopdf, below is the HTML code

<span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114024123.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114027482.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114030623.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114033607.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114036357.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114038732.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114040404.jpeg></span><span><img src=https://crm.bascrm.com/Documents/ProposalDocuments/ImagesFiles/2-23060-101620190712114041545.jpeg></span>

Its not converting and giving error , where as if we pass just one <span> tag with one img inside it works perfectly.

Problem generating PDF from HTML, URLs: msg:D:\somepath\2-58196-1016-E_sign(2019-07-12).html, outputFilename: 2-58196-1016-E_sign(2019-07-12) ---> System.Exception at SendInvoice.HtmlToPdf(String pdfOutputLocation, String outputFilenamePrefix, String[] urls, String[] options, String pdfHtmlToPdfExePath) in d:\somepath\SendInvoice.cs:line 3734 --- End of inner exception stack trace --- at SendInvoice.HtmlToPdf(String pdfOutputLocation, String outputFilenamePrefix, String[] urls, String[] options, String pdfHtmlToPdfExePath) in d:\somepath\SendInvoice.cs:line 3739 at createPdf.createFilesByString(EditFunctions data, String path, String id, Boolean footertrue) in d:\somepath\createPdf.cs:line 1439

We are using the attached code (https://github.com/wkhtmltopdf/wkhtmltopdf/files/3386437/htmltopdf.txt) We are on IIS Server, is there any permission issue for converting big data?

Please help.

Regards Supriya htmltopdf.txt

wkhtmltopdf/wkhtmltopdf

Answer questions getgnu

See, it makes a weird mistake like the one below. What could be the reason?

root@Dell:/home/fortran/Masaüstü# wkhtmltopdf http://getgnu.org getgnu.pdf
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Loading page (1/2)
QNetworkReplyImplPrivate::error: Internal problem, this method must only be called once.
Printing pages (2/2)                                               
Done                                                           
Exit with code 1 due to network error: OperationCanceledError
useful!
source:https://uonfu.com/
Github User Rank List