NReco is a collection of reusable components for .NET platform (.NET Framework and .NET Core)
Questions tagged [nreco]
143 questions
1
vote
2 answers
The ScaleTo parameter behaviour in the NReco.PdfRenderer.PdfToImageConverter in Windows
I'm trying to render a scaled image using the code:
new PdfToImageConverter
{
ScaleTo = 2200
}
.GenerateImage(
"sample.pdf",
1,
ImageFormat.Png,
"sample.pdf.png");
The code renders a good proportional image under Ubuntu, but a…

Sergey Voronkov
- 67
- 7
1
vote
2 answers
System.Exception: Invalid license key at NReco.PdfRenderer.License while using the PdfToImageConverter.GenerateImage concurrently
I'm trying to use the PdfToImageConverter.GenerateImage method concurrently, in various threads:
new PdfToImageConverter
{
ScaleTo = this.settings.ScaleTo
}
.GenerateImage(
pdfContentStream,
task.Page,
ImageFormat.Png,
…

Sergey Voronkov
- 67
- 7
1
vote
2 answers
System.Security.SecurityException: Request failed exeception
I am trying to generate PDF from HTML data using NReco.PdfGenerator.
public static MemoryStream HtmlToPDFConvert(string html)
{
HtmlToPdfConverter pdfConverter = new HtmlToPdfConverter();
pdfConverter.Size = NReco.PdfGenerator.PageSize.A4;
…

Harshad Raval
- 79
- 2
- 10
1
vote
1 answer
Page header is not showing for cover page
I am using wkhtmltopdf 0.12.6 with asp.net core and deployed it in Azure Linux.
I want to show different header for the cover page.
But when I generate, page header is not showing for the cover page. Page header has been removed automatically.
How…

Jeeva J
- 3,173
- 10
- 38
- 85
1
vote
1 answer
Custom Aggregator for NReco.PivotData
I need to totalize annual employee holidays, with this rules:
For any day show the number of holidays availables for a employee
Sum holidays of different employees
Sum holiday for different years and same employees
For…

josellm
- 23
- 7
1
vote
1 answer
How to Set Height of a PDF header, footer in c# web application(Using NReco.PdfGenerator)
I am working on a c# web application and using NReco.PdfGenerator to generate a pdf. PDF is generating fine with Header and Footer.
I am using "PageHeaderHtml" and "PageFooterHtml" to generate header footer.
Now I need to set specific height for…

Soumen Halder
- 117
- 1
- 13
1
vote
0 answers
Can NReco PDF Generator somehow fire the event Session_End on an ASP.Net MVC Application?
I'm using NReco html-to-pdf converter to deliver a file stream representing a PDF document through an action method. However it seems that when I invoke the method HtmlToPdfConverter.GeneratePdf although the response is delivered correctly the…

Néstor
- 31
- 1
1
vote
0 answers
Does NReco.PDFgenerator supports accessibility?
We use NReco.PDFGenerator in our application and the pdfs generated do not appear to be accessible. Is there any library that we can use or any other way to make these PDFs accessible?

learningtocode2020
- 37
- 7
1
vote
2 answers
Custom names for aggregates
In using the different aggregator factories is there a method or override that will allow for defining a custom name for the return label. For example, calling the SumAggregatoryFactory to sum the "Amount" field will return a row label of "Sum of…

Jason
- 13
- 3
1
vote
1 answer
NReco.ImageGenerator doesn't show images and styles
I am trying to convert my simple html document into image. I am using NReco.ImageGenerator for this.
But it does not show included image and styles
I am using Windows 10
Here is my code
var html = File.ReadAllText("main.html");
var htmlToImageConv =…

likvidator3301
- 13
- 3
1
vote
0 answers
How create video file from bitmap array by NReco
I have pictures from the camera and I'd like to save them as a video. I do not have pictures saved as files, I just keep them in my memory (like Bitmap).
The headword method I need might look like this:
public void…

Michal Blažek
- 71
- 1
- 4
1
vote
1 answer
NReco HtmlToPdfConverter error: The specified executable is not a valid application for this OS platform
I use NReco HtmlToPdfConverter and usually it works correctly. But sometimes I face with the following error:
Cannot generate PDF: The specified executable is not a valid application for this OS platform.
The code is quite simple, it is a…

Ilya Shpakovsky
- 281
- 1
- 3
- 16
1
vote
1 answer
No page breaks when converting HTML to PDF using NReco
Having an issue when converting a HTML page to a PDF using NReco, where div's with the style 'page-break-before:always;' will not leave a page break when it's converted to a PDF.
Below is the code that actually converts the html to PDF
var htmlToPdf…

DubDub
- 1,277
- 1
- 10
- 24
1
vote
1 answer
Generate an image from an HTML code/file in .NET Core 2.x Console Application?
I've currently a problem with the NReco.ImageGenerator in a .NET Core 2.x console application that I can't get an image because of course, the console application is not web service at all.
My question now is: Is there a way to use a somehow web…

OnlyOneCookie
- 93
- 1
- 1
- 9
1
vote
1 answer
How to parse a string expression with bitwise operators using Nreco LambdaParser package?
I have the following code but it doesn't compile, I tried to find anything about bitwise operators when using Nreco lambda parser package but I havent found a example.
var lambdaParser = new NReco.Linq.LambdaParser();
var varContext = new…

Roger S
- 15
- 4