Questions tagged [selectpdf]
75 questions
11
votes
3 answers
Could not get conversion result header. Data transfer error. Data transmission error 109
I am using "SelectPdf Html To Pdf Converter for .NET – Community Edition" to generate pdf files. Everything is working fine on the Live server. Suddenly error start to come when I try to generate pdf files.
If I restart my server it works fine for…

Kashif Hanif
- 1,718
- 2
- 17
- 29
6
votes
1 answer
Adding CSS file to SelectPdf converter
How can I add/introduce a CSS file to SelectPdf converter?
I've used SelectPdf library for converting HTML string to PDF file.
my CSS file is in cssFilePath
public byte[] Create(string htmlString)
{
string cssFilePath =…

x19
- 8,277
- 15
- 68
- 126
3
votes
0 answers
Conversion failure. Could not find Chromium binaries (trying to load from *[Project]\Chromium\)
I'm trying to use Blink as rendering engine but it fails. Installed Select.HtmlToPdf.NetCore.Blink and using .net v4.8.
I have a single file "Select.Html.dep" inside bin folder. Running with iisexpress.
// instantiate a html to pdf converter…

HasanG
- 12,734
- 29
- 100
- 154
3
votes
1 answer
Make div element the same size as A4 in PDF output
I am using select.htmltopdf nuget package (selectpdf.com) to generate PDF.
public static FileResult GetPdf(string html, string filename)
{
HtmlToPdf htmlToPdf = new HtmlToPdf();
htmlToPdf.Options.PdfPageSize = PdfPageSize.A4;
…

Muflix
- 6,192
- 17
- 77
- 153
3
votes
3 answers
SelectToPdf html to pdf conversion makes the font size slightly smaller. There is a way to configure font size from settings?
SelectToPdf after conversion from html to pdf makes the font size they way smaller as it should be
I've compared it with some different html-pdf converters and they work as expected
Here are my converter settings
{
…

Yaroslav Smoliak
- 143
- 1
- 7
3
votes
0 answers
SelectPdf slow performance on web server
I'm testing the SelectPdf Community Edition for a new project.
I'm converting a single-page HTML document to PDF. On my local dev machine, this takes 2-3 seconds. But when deployed to our test web server, the same conversion takes about 3.5…

Doug
- 2,400
- 2
- 18
- 24
3
votes
2 answers
SelectPdf HtmlToImage throwing "Conversion error: Unknown error"
I am using SelectPDF to generate pdfs from a cshtml template. My PDF generates locally, but when on production I get an error.
Stack trace:
at SelectPdf.HtmlToImage.?(String A_0, String A_1, String A_2, ?[]& A_3, ?& A_4)\r\n at…

NetHawk
- 1,392
- 1
- 15
- 33
3
votes
1 answer
Linebreaks inside SelectPdf
We're using the SelectPdf Html2Pdf api to generate pdf from html code.
This is working well, but there is a problem we can't get find the solution.
When we have a long line inside a tag, this line is getting outside the pdf.
What we would like, is…

henk
- 367
- 1
- 4
- 13
2
votes
2 answers
How to use another cshtml file as SelectPDF header in ASP.NET MVC?
anyone using SelectPDF in ASP.NET MVC project here? I have two files, content.cshtml and also header.cshtml. I want to create an invoice which header is actually a table with page number shown as following prototype:
The header template including…

Sheng Jie
- 141
- 3
- 16
2
votes
1 answer
SelectPdf display footer only on custom pages
I'm using SelectPDF to convert an HTML template into a PDF. The design I'm following requires to display a footer only on the first page.
The documentation does not cover custom pages display.
Anyone tried this before?

Lorena Sfăt
- 215
- 2
- 7
- 18
2
votes
2 answers
External CSS when using SelectPDF
I have the following function that creates a PDF of a HTML page.
[Authorize]
public FileStreamResult PDFCV(int Id)
{
var user = _userManager.GetUserAsync(User);
HtmlToPdf converter = new HtmlToPdf();
var BaseUrl = HttpContext.Request.Host;
…

Atle Kristiansen
- 707
- 7
- 28
2
votes
1 answer
The PDF result from SelectPDF HtmlToPdf is different when i run it from released Website in IIS (dotnet core)
I'm working in a website with PDF generation, but the result changes between the local execution and the final deployed site (the site effectively generates the PDF and the same binaries were checked with dotnet run -c Release and the result is the…

Erick IO
- 46
- 7
2
votes
2 answers
ASPNETZERO - Authentication in SelectPdf ConvertUrl() From Angular 4/.Net Core
I am using ASPNETZERO's Angular 4 + .Net Core.
I have a grid that displays a list of the user's submitted forms and a column with a button to print the form.
Here's my print function; I'm passing the url for the ConvertUrl() method in the input:
…

Wizgod
- 91
- 10
2
votes
0 answers
Wrapping a Table onto a new page with SelectPDF
I'm using SelectPDF's HTML to PDF converter to generate a PDF based on an HTML document containing a wide table of data. I'd like this table to wrap onto a second page (or Nth) page if needed, but instead SelectPDF squeezes the table into the space…

Jason Jackson
- 17,016
- 8
- 49
- 74
2
votes
1 answer
SelectPDF Saving Difficulties
I have a project that requires me to create a PDF document based on the user inputs and decided to use SelectPdf as my tool. Any way, I created a dummy project to test the functionalities there and it works fine.
However, when I tried to integrate…

Adrian Santos
- 31
- 3