Questions tagged [ironpdf]

69 questions
1
vote
1 answer

IronPDF FormField value with new line

Using IronPDF, I need to fill in a PDF Form Text Field with a multiline string. A single string works fine, but using Environnment.NewLine adds a symbol; \n and \r\n are displayed as text. I need to avoid modifying the PDF in any way. 'Example that…
Michael
  • 2,825
  • 3
  • 24
  • 30
1
vote
0 answers

.NET Core MVC show PDF in iframe (IronPDF)

I'm trying to render a pdf file created with IronPDF in an iframe, but it only shows a blank file. But if I save the file to the server drive, it works like a charm. Could it be an encoding problem? This is my code: $.ajax({ url:…
Cpt. Awesome
  • 87
  • 1
  • 2
  • 13
1
vote
1 answer

How to make file flatten while merging two PDF using IronPdf?

I have two PDF files and I want to merge two PDF files in single PDF files using IronPDF (reference from https://ironpdf.com/). Here is the code I am using var PDFs = new List(); foreach (var file in files) …
Tejas
  • 107
  • 4
  • 13
1
vote
1 answer

How authenticate IronPDF RenderUrlAsPdf?

I'm trying to print out a pdf invoice from a page that requires authentication (https://localhost:44362/invoice). All of this works neatly when authorization is off, but when I turn it on, the whole thing falls apart. I'm using .NET Core 2.1 MVC…
Sami
  • 2,050
  • 1
  • 13
  • 25
1
vote
0 answers

IronPDF MarginLeft and MarginRight does not work in Landscape PaperOrientation?

I am trying to convert HTML template to PDF using IronPDF's HtmlToPdf(). I have following settings for PdfPrintOptions Dpi = 600, EnableJavaScript = true, PaperOrientation = PdfPrintOptions.PdfPaperOrientation.Landscape, PaperSize =…
Vinit Divekar
  • 774
  • 10
  • 24
1
vote
2 answers

Rendering flot chart IronPDF

Trying to get Flot chart to render using IronPDF and razor pages but having no luck. I have the following jQuery in my razor page: Here is my div:
Enabled javascript for…
john
  • 3,949
  • 7
  • 34
  • 56
0
votes
1 answer

Display images in ASP.NET Core MVC application that are also exported to pdf using IronPDF library

I am working on displaying an image on a webpage that is exported to a pdf using the IronPDF library. The problem I am having is that changing the img tag in cshtml is causing the image to either display in the PDF or the webpage but not both. Image…
0
votes
1 answer

How do I render and return a view as pdf

So I'm trying to add a new endpoint to my controller which can return the html response of another endpoint at pdf. The reason for this is deprecate a 3rd party service which involves all kinds of other problems. I've found a library called IronPDF…
Andy
  • 3,228
  • 8
  • 40
  • 65
0
votes
0 answers

In a PDF, using C# and IronPDF library Is there a way to search for the table of contents and extract its hyperlinks?

I'm working with some PDF's and I would like to extract its table of contents. Once I get it, I want to extract the hyperlinks that are inside or if it makes easier to understand: if I click on the content from the index, it redirects me to a page…
Valori
  • 1
  • 4
0
votes
4 answers

How to add a watermark in an existing pdf document in .net?

I tried IronPdf's PdfDocument.ApplyWatermark(watermarkHtml), but it din't work, no watermark is appied. You guys know any other library or workarounds? I'm using Dotnet 6 and IronPdf 2023.5.8 IronPdf.Logging.Logger.EnableDebugging = true; …
Eric
  • 101
  • 9
0
votes
1 answer

IronPdf - How to add a blank page with an image

I have a signature image that I want to insert into the end of a document. I have this signature available in base64 format or binary. I believe this can be achieved using somethink like this piece of code: PdfDocument document = new…
Eric
  • 101
  • 9
0
votes
0 answers

Adding Borders to Header and Footer of PDF Pages when HTML Elements Span Multiple Pages in IronPdf

To provide additional context for the issue at hand, there are situations where HTML elements span multiple pages in a PDF. In order to address this, I am looking to add borders around the HTML elements that are split across different PDF pages. The…
ousecTic
  • 1,895
  • 11
  • 20
0
votes
1 answer

How to generate entire html content in a single page using ironpdf

HtmlToPdf Renderer = new HtmlToPdf(); Renderer.RenderingOptions.Timeout = 60; Renderer.RenderingOptions.RenderDelay = 30000; Renderer.RenderingOptions.EnableJavaScript = true; …
PAR
  • 707
  • 1
  • 6
  • 18
0
votes
1 answer

IronPdf IronSoftwareDeploymentException in Azure Wep App

I am getting below exception after deploying HTML to PDF functionality in Azure Web App(.net Framework 4.8).Same is working fine in local . IronSoftware.Exceptions.IronSoftwareDeploymentException: Error while deploying IronPdf Chrome renderer:…
ctor
  • 198
  • 2
  • 12
0
votes
0 answers

Ironpdf - java takes 60s to generate a single page pdf in docker container - debian 11

We are running ironpdf as part of springboot and it works awesome in windows locally (5-6secs) However when deployed on linux docker container, it takes 60 secs to generate a single page pdf. The logs look wierd, I see "Browser 26", "Browser 27" in…
Balaji
  • 201
  • 2
  • 12