Questions tagged [selectpdf]

75 questions
1
vote
0 answers

SelectPDF HtmlToPDF linked Google webfonts not working

My application is a .NET 5 Web API that will run as an App Service on Microsoft Azure Everything works fine except the custom font I am trying to use I am trying to link a font from google in HTML and then convert this to pdf The HTML head has this…
1
vote
0 answers

ASP.NET CORE SelectPdf - Load external css

I'me using Selectpdf to generate and save PDF files by HTML page. I'm also using bootsrap in my page. I'm loading via https, and I want load locally. I have this:
1
vote
1 answer

SelectPdf - NET Core 3.1 - Failed to convert HTML to PDF on Azure App Service

I have a .NET Core 3.1 web app running on Azure App Service that is using SelectPdf to convert some HTML document to PDF. It is working perfectly on my localhost but once I publish on to Azure, I got the following error no matter how small/simple my…
user1296699
  • 23
  • 1
  • 6
1
vote
1 answer

SelectPDF ASP.NET MVC how to pass page number into header table template if my header is converted using html string?

I am using following code to create header in selectPDF. string headerUrl = ViewToHtmlAsync("~/Views/HeaderTemplate/Header.cshtml"); PdfHtmlSection headerHtml = new…
Sheng Jie
  • 141
  • 3
  • 16
1
vote
1 answer

SelectPdf Html to PDF Image Not Appearing

I'm using SelectPDF to convert HTML to PDF There's a section in the html for image:
Logo
There's no issue viewing the page in html But when the html is converted the picture doesn't appear.
userone
  • 173
  • 4
  • 14
1
vote
1 answer

SelectPDF not Showing Grid Data

I'm using Select PDF - Community Edition to render the output of a web page (e.g. document). When I view the PDF...the data in the grids are empty. And yes, the grid data does render when viewed normally As a side-note...I am using Kendo Grids As…
Prisoner ZERO
  • 13,848
  • 21
  • 92
  • 137
1
vote
1 answer

SelectPDF - not styling using an included CCS file

I am using SelectPDF and it seems to ignore CCS files that are included in the selected URL. CCS styling works if I access the page directly but not using SelectPDF - a PDF is produced but unstyled. I have read a number of possible solutions that…
Cliff C
  • 143
  • 1
  • 10
1
vote
1 answer

SelectPDF not printing background svg image

I am trying to convert html to pdf which has svg image as background image. When convert it with selectPdf api (v2) it doesn't print background svg image but if i use their online test page to convert same html to pdf it does print background image.…
Bhavesh
  • 819
  • 1
  • 17
  • 31
1
vote
1 answer

how can i open pdf in browser instead of download in webapi

I am using selectPdf to generate dynamic pdfs in my webapt. Select PDF download this pdf as attachment, I want that this PDF should show in browser tab instead of downloading. following is my code. [HttpGet] [Route("myapplication")] …
Muhammad Saifullah
  • 4,292
  • 1
  • 29
  • 59
1
vote
1 answer

SelectPDF not update width in percentage

Scenario: I used selectpdf to convert my MVC view page to PDF. The view contains charts and tables. Export also working as expected except as table width Problem: I am having one table created dynamically. I used column width in percentage to set…
Akhil
  • 1,918
  • 5
  • 30
  • 74
1
vote
2 answers

Pass data between Actions in MVC

I have a mvc web application which contains chart and table data. Scenario: I am populating data in the Index method and return the model to view for binding. In view, table bind with the data. I also want to bind the chart with same data. Chart…
Akhil
  • 1,918
  • 5
  • 30
  • 74
1
vote
1 answer

Selectpdf - cannot remove top margin on page

I am using SelectPdf, and when configuring my converter to convert the string to a pdf, my pdf keeps ending up generating some margin on the top of the page. My converter: private Stream ConvertToPdf(string data) { HtmlToPdf converter = new…
andrelange91
  • 1,018
  • 3
  • 21
  • 48
1
vote
1 answer

SelectPDF missing content after conversion

So I am using SelectPDF to convert an MVC view's html to PDF, but for some reason, a great deal of the content is missing from the PDF. I have tested the program on other sites I have made in MVC and they work... So as per the readme doc's…
Tiaan
  • 698
  • 2
  • 10
  • 32
1
vote
0 answers

Select PDF - Find Emptiness of a PDF Page

This is continuation of the previous question. (Removing Empty Pages in a PDF document using C#) Many thanks for all the help. Im trying to remove random empty pages from a PDF document which has more than 500 pages. With the help of previous…
BUDDHIKA
  • 306
  • 2
  • 8
  • 23
1
vote
1 answer

SelectPdf for .NET not picking controls text when generating pdf html from url

I'm trying to convert a simple webpage to pdf using SelectPdf for .NET community version. the page is like survey, so user logins in and enter the details and should convert to PDF on the button click The tool works great in dev environment. But…
Krish
  • 35
  • 5