Questions tagged [nreco]

NReco is a collection of reusable components for .NET platform (.NET Framework and .NET Core)

NReco website

143 questions
1
vote
1 answer

Is there a way to set different headers on different pages using NReco.Pdf Generator C#?

We are having different templates for PDF Headers and Body respectively. Now we want different Headers on different pages. We are converting HTML to PDF using NReco and version is 1.1.12.
Ranjana
  • 85
  • 9
0
votes
0 answers

NReco.PdfGenerator shows error when the output pdf file name is not in English

I am working on a project in C#.net windows application. In which I convert HTML data to PDF file. But when i give name in language other than english it gives error. var margins = new PageMargins(); var htmlToPdf = new HtmlToPdfConverter(); if…
0
votes
1 answer

Nreco taking varying lengths of time to generate the same PDF

We have a system in place where we're using NReco.PdfGenerator (version 1.2.0 in .NET 4.8) to generate letters to send to customers. We've got dozens that we're sending a day and we're having trouble with the performance to get things in…
Matt James
  • 109
  • 2
  • 8
0
votes
1 answer

How to use the ExecuteReaderAsync method from NReco DbDataAdapter

I'm trying to convert some code that uses NReco.Data to async version of ExecuteReader (ExecuteReaderAsync) but the methods requires many parameters. Any ideas…
0
votes
1 answer

How to get NReco.PdfGenerator to honour `column-count` css property

I've got a web page enrolment form that we need to email to our customers. The form has been divided into 2 columns using the column-count css property. Unfortunately, when NReco.PdfGenerator generates the Pdf, these columns are rendered as a…
John O
  • 893
  • 7
  • 12
0
votes
1 answer

Custom/non-Unicode fonts not working with wkhtmltopdf wrapper nreco on window application in C#.NET

I am converting an HTML text string to pdf with the C#.net wrapper "NReco.PdfGenerator" for wkhtmltopdf on Windows Application. When I am converting html text which have Custom/Non-Unicode Fonts like "Kurti Dev 010" then wkhtmltipdf not generating…
xyz
  • 1
  • 1
0
votes
0 answers

Internal Server Error 500 when running NReco in AWS App Runner

I am using NReco to create a PDF File from an HTML Template. It is working fine, but when we deploy it to AWS App Runner it fails with the following error: Error: Internal Server Error
0
votes
1 answer

Repeat user info on every page in html to pdf

I am using NReco PdfGenerator for developing customer statement. For that html is prepared and then converted to PDF. In the generated pdf there is User Information section and Statement section. Currently Statement section is repeated to other…
vivek v
  • 167
  • 1
  • 3
  • 16
0
votes
0 answers

Korean utterances are not well mapping into GeneratePdf from html content

I am generating pdf from this HTML, and for achieving this I am using https://www.nrecosite.com/pdf_generator_net.aspx This is the HTML
0
votes
0 answers

How to add text on video using NReco VideoConverter ffMpeg

I tried to add text on video using NReco VideoConverter which is ffmpeg wrapper for C#. I tried below code var ffMpeg1 = new NReco.VideoConverter.FFMpegConverter(); ffMpeg1.FFMpegToolPath =…
vaibhav shah
  • 4,939
  • 19
  • 58
  • 96
0
votes
1 answer

NReco.PdfGenerator may not be fully compatible with your project

I am trying to use NReco.PdfGenerator 1.2.0 on a C# batch job developed in .net core 3.1 but it doesn't work and I am getting the following warning: Severity Code Description Project File Line Suppression State Warning NU1701 Package…
Luis Cabrera
  • 569
  • 1
  • 7
  • 18
0
votes
1 answer

Nreco C# WkHtmlToPdf wrapper flex wrap

I cant seem to find a combination of prefixes for flex that enables flex wrapping using the Nreco HTML to PDF componment. .container { display: -webkit-box; display: -webkit-flex; display:…
Rolf Herbert
  • 45
  • 1
  • 8
0
votes
1 answer

NReco HTML-to-PDF Generator GeneratePdfFromFiles method throws exception

I have a fully working system for creating single page PDFs from HTML as below; After initializing the converter var nRecoHTMLToPDFConverter = new HtmlToPdfConverter(); nRecoHTMLToPDFConverter =…
Manuel.B
  • 81
  • 10
0
votes
1 answer

NReco pdf generator issue

I am getting the exact same error code as this question. I also read the answer to that post but not sure how it'll help in the context of this specific error. NReco PDF generator works when I omit this line in this html file: …
Dean P
  • 1,841
  • 23
  • 23
0
votes
0 answers

Parameter type-checking for Logical Binary Expressions written as strings in C#?

Imagine a scenario where you want to allow users to supply an application with logical binary expressions as strings, using a set of well-defined parameters. For example: "isSuperAdmin || userLevel > 5 && isAdmin" The system is using NReco's Lambda…
mihalios
  • 828
  • 1
  • 6
  • 12