Questions tagged [nreco]

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

NReco website

143 questions
6
votes
2 answers

NReco HtmlToPdfConvertor on .NET Core throws HttpContext exception

When I declare the NReco.PdfGenerator in a .Net Core 2.0 Mvc application I get an error. I added the Nuget package NReco.PdfGenerator 1.1.15 to the project Made a using statement In the controller Declare the HtmlToPdfConverter [HttpPost] public…
Stefan de Groot
  • 364
  • 1
  • 4
  • 12
6
votes
3 answers

custom fonts with wkhtmltopdf wrapper nreco on azure web app

i am converting an html file to an pdf with the .net wrapper "NReco.PdfGenerator" for wkhtmltopdf on an azure web app (running in standard plan) but cannot include custom fonts in my document. The custom fonts are not loaded by the PDF generator or…
cyptus
  • 3,346
  • 3
  • 31
  • 52
2
votes
1 answer

ListAggregatorFactory returns system.collections.generic.list`1[system.object]

I've been using the powerful NReco library to create pivot tables. And using the very convenient HTML wrapper extension to turn those tables into HTML. When I use the '' I get the following returned into the…
Juls
  • 658
  • 6
  • 15
2
votes
0 answers

NReco PDF Watermark

Anybody can please help me with creating a PDF with Watermark using NReco in C#.NET? I want to dynamically add image as Watermark while generating PDF from html to PDF concept. I am not able to find any code for this available easily.
2
votes
0 answers

HTML line split between two pages, when try to convert pdf via NRECO

I am using
  • ....
to display data. When I found to much data then some splits between two pages. PFA image I tried with below CSS: ul { page-break-inside: avoid !important; } AND li { page-break-inside: avoid !important; }
Saurabh Gadani
  • 103
  • 2
  • 9
2
votes
1 answer

ASP.NET Webforms Nreco PDF Generator - Exit with code 1, due to unknown error

I have a web-application built in ASP.NET Webforms VB.NET. I am creating a method for exporting the pages via urls utilising the WKHTMLTOPDF and NReco PDF Generator libraries. During my local development, everything seems to work ok, other than the…
Kyran
  • 21
  • 3
2
votes
1 answer

How to change bitrate with nreco functions using textbox?

I'm trying to write a converter in C # using Nreco.VideoConverter. I've never had any experience with these before. I started researching this area because I was asked at work. My problem is; I can change the bitrate value in video converter. If you…
Zeynep Baran
  • 37
  • 1
  • 7
2
votes
1 answer

Configure additional pivot column headers on PivotTable

I'm using the NReco PivotData library to pivot on a date field so that the dates appear horizontally in the header. This works well, however, I'd like to add dates to fill in the gaps so that the results are more complete (by default the library…
Keir Nellyer
  • 913
  • 5
  • 12
  • 20
2
votes
0 answers

Trying to create a pdf from html using Nreco pdf converter, not able to load images from amazon cloud

Trying to create a pdf from html using Nreco pdf converter, html contains images which were loaded properly when loading it from same domain, we have amazon cloud for images so all the images are moved to amazon, and the url is something like this…
2
votes
2 answers

C# - NReco.PdfGenerator non english character not rendering

I am using NReco.PdfGenerator library to generate pdf from html. It is working fine for english language. I also required to include non-english language(marathi) , in that case not working like as expected. rendering black boxes. This is my action…
Mujthaba Ibrahim
  • 207
  • 3
  • 16
2
votes
1 answer

NReco(Generate PDF) not working on Godady server

I am using NReco for generating PDF it's working fine on local server but when i publish it on live server(GoDady)getting error Cannot generate PDF: This program is blocked by group policy. For more information, contact your system administrator
2
votes
1 answer

NReco.PdfGenerator error : AuthenticationRequiredError

I used "NReco.PdfGenerator.dll" to my web project (Visual studio 2012, c#), and it can export from internet url (like http://google.com.tw) succsssfully But when I change the url to internal url (out company internal system) and I got this error…
Tim
  • 23
  • 1
  • 6
1
vote
1 answer

Error running the converter as Azure function

I created an Azure function to do HTML to Pdf conversion and am getting the following error in Azure function logs: Access to the path 'C:\Program Files (x86)\SiteExtensions\Functions\3.20.0\32bit\wkhtmltopdf' is denied. Code on the functions is…
Angelo
  • 35
  • 6
1
vote
1 answer

Customize Page Number in NReco.PdfGenerator

Currently in footer already write page number which are first page : Page 1, second page : Page 2 and so on. I am trying to achieve is first page : Page 1 and second page: Page 3. How can I customize those number? public void GenerateHtmlToPdf() { …
Ahmad F
  • 23
  • 5
1
vote
1 answer

How to implement mutations using nreco.graphql in dotnet application

I am very new to Graphql and trying to implement mutations in dotnet using nreco.graphql, as of now there are no errors in the project files , when I tried to execute the mutation query am getting below error message. It says the input format what…
1
2 3
9 10