Questions tagged [ironpdf]

69 questions
2
votes
2 answers

IronPDF EAP doesn't interpret C# string as UTF-16

I'm attempting to convert a bit of HTML to a PDF document with IronPDF EAP 2021.6.3135. After creating a new ChromePdfRenderer, I call RenderHtmlAsPdfAsync on it, passing the HTML string as the only argument. The HTML is a single
with several…
Rich Armstrong
  • 143
  • 1
  • 7
2
votes
1 answer

-webkit-transform CSS property not working in IronPdf

I want to convert a html page in a ASP .NET project with IronPdf This is the HTML that I give to IronPdf:
Tywele
  • 485
  • 1
  • 7
  • 21
2
votes
2 answers

C# open a pdf file using default application and delete the file after application is closed

I am converting a .txt file to a pdf and need to display the pdf to the user. For that, I have created a temporary .pdf file and created a process to open the file. This works fine when there is adobe acrobat installed. This fails when there is no…
Jivan Bhandari
  • 860
  • 1
  • 10
  • 32
2
votes
1 answer

IronPdf Print to Margin

I try to print a pdf with IronPdf from html but the result leaves a border. Is there a way to set Fit-To-Page in my PrintDocument? Here my code: public static void PrintDocument(string printer, bool landscape, PdfDocument pdfDocument,…
Felix Arnold
  • 839
  • 7
  • 35
1
vote
1 answer

ironpdf RuntimeError: Failed to create a .NET runtime

i am following a pdf reader tutorial with ironpdf from this link but i got this error: --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) File…
maygon
  • 57
  • 18
1
vote
1 answer

Loading nuget packages at runtime

i have a problem during test execution. So i have a docker file and inside i´m running "dotnet test". It uses IronPDf and IronPdf needs the package IronPdf.Native.Chrome.Linux/2022.3.5075'. It is alredy defined as a dependency in csproj, still…
1
vote
0 answers

IRON Pdf issue in PDFDocument

I am facing issue in second line of below code for some PDFs not all... Where code is getting stuck on 2nd line and not throwing any error and not coming out of that line. Below att variable is a .pdf file. Even if there is any way so that it throws…
Vivek
  • 11
  • 2
1
vote
1 answer

iron pdf license not working Although it appears activated in the localhost check

Iron pdf license does not work when i deploy my project on aws when i used check license in localhost it returns true private async Task> GetReportPdf(long id) { try { var command = await…
1
vote
1 answer

IronPDF - Use different nuget source for downloading platform specific dependencies

Our dev environment is behind Firewall and default NuGet url is blocked and we use a custom NuGet repo url for downloading package. IronPdf tries to download IronPdf.Native.Chrome.Windows version 2022.2.4868 in runtime from …
Abdul Hameed
  • 1,025
  • 12
  • 27
1
vote
2 answers

C# - PDF Headers and Footers

I am using IronPDF to generate PDF documents in .NET. I wish to have different headers on odd and even pages. Based on all of the IronPDF API presented, The headers and footers should be the same on every page. For example: using IronPdf; …
user1773603
1
vote
1 answer

IronPDF System.Exception Error while generating PDF from Url in Azure function

I have an Azure (durable) function that is using the new Runtime Version 3 which is supposed to generate a PDF using IronPDF from a URL. The function keeps failing and the only error that gets logged to Insights is something like this: Exception:…
Raihan Iqbal
  • 407
  • 3
  • 16
1
vote
1 answer

Creating wrapper objects for PDF library

I am having an issue wrapping my head around how to properly wrap a PDF library I am using called IronPDF. IronPDF has a PdfDocument object. My thought was to create a IronPdfDocument object that looks like this: public class IronPdfDocument :…
scapegoat17
  • 5,509
  • 14
  • 55
  • 90
1
vote
1 answer

Interacting with a .pdf file using IronPdf causes internal CLR error (0x80131506)

I am currently trying to interact with PDF files using a library called IronPdf. I created a simple Console Application and managed to follow their tutorial by creating a HTML file, writing to it, saving it as a PDF and accessing that PDF. However…
T H
  • 365
  • 1
  • 2
  • 9
1
vote
1 answer

How to remove header and footer in pdf

generate html content to pdf using IronPdf, but in pdf generate 3 pages header content and footer in separate pages , how to display in single page hole content. var Renderer = new IronPdf.HtmlToPdf(); …
1
vote
1 answer

Specific pages from a PDF file with IronPDF - C#

I have this code, and it's like I don't put any specification to exclude pages. I need to select up to 8, not continuous pages. Let's say, the pages 3, 6, and 9. So I tried this: var PDFs = new List(); …