Comments on: How to Easily Create a PDF Document in ASP.NET Core Web API https://code-maze.com/create-pdf-dotnetcore/ Learn. Code. Succeed. Wed, 31 Jan 2024 14:17:08 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Premtim Ramadani https://code-maze.com/create-pdf-dotnetcore/#comment-6962 Fri, 25 Nov 2022 15:57:09 +0000 https://code-maze.com/?p=3498#comment-6962 In reply to Fatmaa Gomah.

Did you find a solution for this, I have the same problem!

]]>
By: Malangraja T https://code-maze.com/create-pdf-dotnetcore/#comment-6953 Wed, 23 Nov 2022 19:37:32 +0000 https://code-maze.com/?p=3498#comment-6953 Hi,

I need an option to add images and custom fonts and CSS inline styles in html. And header and footer as customized way. I need seperate header for first page and other page in pdf. Is it possible to process my requirement. Please give me a suggestion. Here I used .net core 2.2 version asp.net Web API core 2.2.8

]]>
By: Abhishek Singh https://code-maze.com/create-pdf-dotnetcore/#comment-6172 Fri, 29 Jul 2022 15:24:21 +0000 https://code-maze.com/?p=3498#comment-6172 i am getting an extra blank page as i download. can you please suggest how to remove extra blank page from created pdf.

]]>
By: Dev https://code-maze.com/create-pdf-dotnetcore/#comment-6093 Wed, 20 Jul 2022 05:27:21 +0000 https://code-maze.com/?p=3498#comment-6093 In reply to Marinko Spasojević.

Hi Marinko,

Thank you for your quick response.

I have found the error and resolved it. Now the PDF creation method is working well.

]]>
By: rashid https://code-maze.com/create-pdf-dotnetcore/#comment-6069 Fri, 15 Jul 2022 09:34:25 +0000 https://code-maze.com/?p=3498#comment-6069 In reply to rashid.

https://github.com/dotnet/sdk/issues/26061

above link helps me to solve mentioned error.
Successfully published to IIS as well.

Thanks @marinko

]]>
By: rashid https://code-maze.com/create-pdf-dotnetcore/#comment-6064 Thu, 14 Jul 2022 15:13:56 +0000 https://code-maze.com/?p=3498#comment-6064 In reply to Marinko Spasojević.

Hello @Marinko,
Thanks for your quick reply. I have gone through above link and now i am getting below error while publishing to IIS. I can successfully build application but getting error while publishing.

Error “dotnet.exe” exited with code 1

]]>
By: Marinko Spasojević https://code-maze.com/create-pdf-dotnetcore/#comment-6063 Thu, 14 Jul 2022 11:10:31 +0000 https://code-maze.com/?p=3498#comment-6063 In reply to rashid.

Hello Rashid. I am not sure, but maybe this can help: https://stackoverflow.com/questions/50286990/error-nu1605-detected-package-downgrade

]]>
By: rashid https://code-maze.com/create-pdf-dotnetcore/#comment-6062 Thu, 14 Jul 2022 08:55:46 +0000 https://code-maze.com/?p=3498#comment-6062 Hi @Team,
Thanks for nice article and I have created pdf on localhost and it is working perfectly in localhost but when publishing to IIS getting following errors

Error NU1605: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
 PB.Server -> DinkToPdf 1.0.8 -> NETStandard.Library 1.6.0 -> System.Console 4.0.0 -> runtime.win.System.Console 4.3.0 -> System.IO.FileSystem.Primitives (>= 4.3.0) 
 PB.Server -> DinkToPdf 1.0.8 -> NETStandard.Library 1.6.0 -> System.IO.FileSystem.Primitives (>= 4.0.1)

I am using .net 6.

Could you please help me to solve this error

]]>
By: Marinko Spasojević https://code-maze.com/create-pdf-dotnetcore/#comment-6059 Wed, 13 Jul 2022 10:57:20 +0000 https://code-maze.com/?p=3498#comment-6059 In reply to Dev.

You don’t have. I like doing that during the development phase when I want to call my endpoints at a certain point and not when the app starts.

]]>
By: Dev https://code-maze.com/create-pdf-dotnetcore/#comment-6058 Wed, 13 Jul 2022 10:54:46 +0000 https://code-maze.com/?p=3498#comment-6058 In reply to Marinko Spasojević.

Hi Marinko,

Thank you for your quick response.

Could you please explain why we need to change the

“launchBrowser”: false,“.

]]>