Questions tagged [selectpdf]

75 questions
1
vote
1 answer

Page Control while HTML to PDF Conversion using Select PDF

I am trying to convert large HTML file to PDF. but just want to set first page and following page number. I have used following code converter = New HtmlToPdf() Dim file As String = "C:\TEMP\Document5.pdf" …
monikapatelIT
  • 977
  • 14
  • 26
0
votes
1 answer

SelectpPDF HtmlToPdf - Generate PDF Certificate as landscape is not centered

I am trying to generate a PDF certificate from Html and I am not able to center or to make it 100% width... Everything looks ok in browser but when I generate PDF is right aligned with a margin on the left side... My html looks like this:
bogdanbrudiu
  • 534
  • 9
  • 32
0
votes
1 answer

SelectPdf Error: Could not get conversion result header. Data receive timeout. [SelectPdf Library for .NET C#]

Exception Message: Could not get conversion result header. Data receive timeout. C# Code: public static MemoryStream ConvertHtmlToPdf(string html) { HtmlToPdf converter = new HtmlToPdf(); PdfDocument doc =…
Hks
  • 1
  • 3
0
votes
0 answers

does selectpdf support finding string and replacing with pdf form fields into a pdf document?

I could not readily find an answer to this question. I'm using selectpdf to convert html to pdf and it's working well. at the same time, i have a need to take the generated pdf and selectively replace specific text with pdf form fields (for purposes…
elitz
  • 51
  • 3
0
votes
0 answers

Images are blurry when converted from Html to Pdf using SelectPdf library .Net

I need to convert html to pdf using SelectPdf. I have an html template with text and images, but the problem is that when I convert this html to pdf the images get smaller but everything looks great on the web browser. This is how I embed images in…
Bush
  • 1
  • 1
0
votes
1 answer

SelectPdf C#: How to clone a page?

For my personal project, I am utilizing the SelectPdf library. My goal is to duplicate a page from an existing PDF document, add text to these replicated pages, and subsequently save them to a new PdfDoc. Despite hours of searching, I have been…
Louis Tran
  • 1,154
  • 1
  • 26
  • 46
0
votes
0 answers

Selectpdf html to pdf conversion - svg patterntransform rotate attribute not working

I'm using selectPDF html to pdf converter to convert an svg document to pdf. I'm using the webkitRestricted browser engine to ensure it runs correctly on azure. Generally speaking, everything is working correctly, including using pattern…
elitz
  • 51
  • 3
0
votes
1 answer

SelectPDF HtmlPdf.ConvertHtmlString method failing in azure-"Error Occurred Trying to Start Process Chrome.exe". Side By Side config is incorrect

I have a .net core 3.1 web app running in an azure web app service using selectpdf with HtmlPdf() to convert a razor view output to PDF. It has been working fine on .net 3.1. I had to upgrade the app service to .net 6 recently. Although it works in…
elitz
  • 51
  • 3
0
votes
0 answers

SelectPdf add page numbering outside footer

I'm using SelectPdf in my ASP.NET Core Web API, it's possible to show page numbering outside footer? In middle of the page for an example. Any help?
0
votes
0 answers

SelectPdf Error : System.InvalidCastException: 'Conversion from string "" to type 'Integer' is not valid.'

I tried to merge two pdf using SelectPdf library. I used Vb.Net as language.It gave me an error like this System.InvalidCastException: 'Conversion from string ""D:\PDF\1.pdf" to type 'Integer' is not valid.' I did all the things after reading their…
delma wax
  • 13
  • 2
0
votes
1 answer

SelectPDF ConvertUrl Non-English Characters Error

In my demo project I'm using Selectpdf tool to convert html pages to pdf documents. These html pages are stored locally. So I'm using ConvertUrl function for conversion. Here is the inline code ` string url = AppDomain.CurrentDomain.BaseDirectory +…
0
votes
0 answers

SelectPDF HtmlToPdf not rendering all pages

I am using the SelectPDF library for my ASP.NET web application to convert a dynamically built HTML to PDF and then print it. The conversion simply looks like this: HtmlToPdf converter = new HtmlToPdf(); converter.Options.PdfPageSize =…
Dinosbacsi
  • 33
  • 3
0
votes
2 answers

SelectPdf HTML to PDF Conversion - images appearing transparent

Using SelectPDF Html to PDF Converter. Generally working fine to convert a fairly complex HTML string (rendered from a razor view) to a pdf document. I am encountering one strange issue related to img tags. The images are appearing in the PDF,…
elitz
  • 51
  • 3
0
votes
1 answer

Publish .NET app as a single file with .dep file included throws error as if its not included

The app uses Select.HtmlToPdf.NetCore NuGet package When publishing the app, I've…
Simas
  • 1
  • 1
0
votes
1 answer

font changing when trying to convert PDF to PowerPoint (PPT)

In my project there is a function to produce a PDF file based on a custom template for each customer. in order to do that I use SelectPDF, then add in ASP.NET Razor files and exporting it as a PDF. sometimes I'm asked for specific fonts, so I add…