[Internal] Output PDF from IronPdfEnginer Docker not as expected
Why is the output from IronPdfEngine Docker is not the same as rendering locally???
Issue Overview:
This issue typically occurs when users attempt to render an HTML file that references external files for styles and fonts.
Since IronPdfEngine Docker operates in an isolated environment, it cannot access external resources such as style sheets or font files. As a result, the generated PDF may be missing styles and fonts.
Workarounds:
To resolve this issue, you can try the following workarounds:
-
Embed Styles and Fonts: Include the styles and fonts directly within the HTML string itself, ensuring all necessary resources are available locally.
-
Use a Zipped Folder: Place the HTML file, along with the style and font files, in a zipped folder. Then, send the zipped folder to the IronPdfEngine Docker using the
RenderZipFileAsPdf()
method.
Result:
By using one of these workarounds, IronPdfEngine Docker will be able to render the HTML with the appropriate styles and fonts applied in the generated PDF.