PDF Sharp and MigraDocs Image Issue in .NET CoreConvert HTML to PDF in .NETWhat is “.NET Core”?Compiling .Net Core VS17What is the difference between .NET Core and .NET Standard Class Library project types?Build .NET Core console application to output an EXE?FileNotFoundException when referencing DLL in .NET Core ApplicationUse .net core with legacy .net framework dllsCefSharp offscreen with .net core 2.0 Runtime Error , System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp.Core,MigraDoc and .NET Core 2.0Unable to add framework class library reference to dot net core 1.1
How did שְׁלֹמֹה (shlomo) become Solomon?
Was Wolfgang Unzicker the last Amateur GM?
Park the computer
Should you add specific garden-fresh herbs to a stew at the beginning or the end?
3D nonogram – What's in the box?
Sleepy tired vs physically tired
How might boat designs change in order to allow them to be pulled by dragons?
Can 4 Joy cons connect to the same Switch?
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
Platform Event Design when Subscribers are Apex Triggers
Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?
What is the addition in the re-released version of Avengers: Endgame?
Chess problem: Make a crossword in 3 moves
Why would a propellor have blades of different lengths?
Show that there are infinitely more problems than we will ever be able to compute
Should I warn my boss I might take sick leave
How can I effectively map a multi-level dungeon?
Data normalization before or after train-test split?
AB5E type molecule
Machine Learning Golf: Multiplication
CPA filed late returns, stating I would get money; IRS says they were filed too late
Could you sell yourself into slavery in the USA?
Isn't "Dave's protocol" good if only the database, and not the code, is leaked?
My players like to search everything. What do they find?
PDF Sharp and MigraDocs Image Issue in .NET Core
Convert HTML to PDF in .NETWhat is “.NET Core”?Compiling .Net Core VS17What is the difference between .NET Core and .NET Standard Class Library project types?Build .NET Core console application to output an EXE?FileNotFoundException when referencing DLL in .NET Core ApplicationUse .net core with legacy .net framework dllsCefSharp offscreen with .net core 2.0 Runtime Error , System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp.Core,MigraDoc and .NET Core 2.0Unable to add framework class library reference to dot net core 1.1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have an issue with PDF Sharp and Migra Docs implementation in .NET Core.
I am using all the .net core dlls for it i.e.
MigraDoc.Rendering.Core,
PdfSharpCore,
PdfSharp.Charting.Core,
MigraDoc.DocumentObjectModel.Core
The PDF is being generated fine.
The images are not being attached. I read on few articles here but it doesn't really help.
The error i am getting is not about System.Drawing issue as the other articles suggests.
The following error message shows up for all the images in the document.
System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dicitionary 2 localResourceSets, Boolean .. )
I have tried to look for this particular error and tried to add resource files but that didn't help.
The code works perfectly fine for .NET frameworks (Any). It's just not working with .NET Core DLLS.
Section sec = document.AddSection();
Image image = new Image();
image = sec.AddImage(Tools.GetMainPageHeader());
image.Width = "190mm";
image.Height = "50mm";
image.Left = ShapePosition.Center;
The above code when executed on .NET core defines the dimensions of the image with the allocated width and height but instead of attaching the image, the error message is displayed.
c# .net-core pdfsharp migradoc .net-core-2.2
add a comment |
I have an issue with PDF Sharp and Migra Docs implementation in .NET Core.
I am using all the .net core dlls for it i.e.
MigraDoc.Rendering.Core,
PdfSharpCore,
PdfSharp.Charting.Core,
MigraDoc.DocumentObjectModel.Core
The PDF is being generated fine.
The images are not being attached. I read on few articles here but it doesn't really help.
The error i am getting is not about System.Drawing issue as the other articles suggests.
The following error message shows up for all the images in the document.
System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dicitionary 2 localResourceSets, Boolean .. )
I have tried to look for this particular error and tried to add resource files but that didn't help.
The code works perfectly fine for .NET frameworks (Any). It's just not working with .NET Core DLLS.
Section sec = document.AddSection();
Image image = new Image();
image = sec.AddImage(Tools.GetMainPageHeader());
image.Width = "190mm";
image.Height = "50mm";
image.Left = ShapePosition.Center;
The above code when executed on .NET core defines the dimensions of the image with the allocated width and height but instead of attaching the image, the error message is displayed.
c# .net-core pdfsharp migradoc .net-core-2.2
I assume you are using a port of MigraDoc. Which one?
– Vive la déraison
Mar 25 at 20:08
Thanks for the reply. Sorry, no idea about the port. Like i mentioned ealier, i am using the following nuget packages. MigraDoc.Rendering.Core, PdfSharpCore, PdfSharp.Charting.Core, MigraDoc.DocumentObjectModel.Core
– Usman Ashraf
Mar 25 at 21:59
So you are using an inofficial port of PDFsharp and MigraDoc that was published 9 months ago. I don't know whatGrovel
is, but maybe a Grovel expert or a person familiar with that specific port can help you. Image handling within this port is different from the standard implementation.
– Vive la déraison
Mar 26 at 10:19
Ok. Thanks again for your help.
– Usman Ashraf
Mar 26 at 11:36
add a comment |
I have an issue with PDF Sharp and Migra Docs implementation in .NET Core.
I am using all the .net core dlls for it i.e.
MigraDoc.Rendering.Core,
PdfSharpCore,
PdfSharp.Charting.Core,
MigraDoc.DocumentObjectModel.Core
The PDF is being generated fine.
The images are not being attached. I read on few articles here but it doesn't really help.
The error i am getting is not about System.Drawing issue as the other articles suggests.
The following error message shows up for all the images in the document.
System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dicitionary 2 localResourceSets, Boolean .. )
I have tried to look for this particular error and tried to add resource files but that didn't help.
The code works perfectly fine for .NET frameworks (Any). It's just not working with .NET Core DLLS.
Section sec = document.AddSection();
Image image = new Image();
image = sec.AddImage(Tools.GetMainPageHeader());
image.Width = "190mm";
image.Height = "50mm";
image.Left = ShapePosition.Center;
The above code when executed on .NET core defines the dimensions of the image with the allocated width and height but instead of attaching the image, the error message is displayed.
c# .net-core pdfsharp migradoc .net-core-2.2
I have an issue with PDF Sharp and Migra Docs implementation in .NET Core.
I am using all the .net core dlls for it i.e.
MigraDoc.Rendering.Core,
PdfSharpCore,
PdfSharp.Charting.Core,
MigraDoc.DocumentObjectModel.Core
The PDF is being generated fine.
The images are not being attached. I read on few articles here but it doesn't really help.
The error i am getting is not about System.Drawing issue as the other articles suggests.
The following error message shows up for all the images in the document.
System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dicitionary 2 localResourceSets, Boolean .. )
I have tried to look for this particular error and tried to add resource files but that didn't help.
The code works perfectly fine for .NET frameworks (Any). It's just not working with .NET Core DLLS.
Section sec = document.AddSection();
Image image = new Image();
image = sec.AddImage(Tools.GetMainPageHeader());
image.Width = "190mm";
image.Height = "50mm";
image.Left = ShapePosition.Center;
The above code when executed on .NET core defines the dimensions of the image with the allocated width and height but instead of attaching the image, the error message is displayed.
c# .net-core pdfsharp migradoc .net-core-2.2
c# .net-core pdfsharp migradoc .net-core-2.2
asked Mar 25 at 18:40
Usman AshrafUsman Ashraf
96 bronze badges
96 bronze badges
I assume you are using a port of MigraDoc. Which one?
– Vive la déraison
Mar 25 at 20:08
Thanks for the reply. Sorry, no idea about the port. Like i mentioned ealier, i am using the following nuget packages. MigraDoc.Rendering.Core, PdfSharpCore, PdfSharp.Charting.Core, MigraDoc.DocumentObjectModel.Core
– Usman Ashraf
Mar 25 at 21:59
So you are using an inofficial port of PDFsharp and MigraDoc that was published 9 months ago. I don't know whatGrovel
is, but maybe a Grovel expert or a person familiar with that specific port can help you. Image handling within this port is different from the standard implementation.
– Vive la déraison
Mar 26 at 10:19
Ok. Thanks again for your help.
– Usman Ashraf
Mar 26 at 11:36
add a comment |
I assume you are using a port of MigraDoc. Which one?
– Vive la déraison
Mar 25 at 20:08
Thanks for the reply. Sorry, no idea about the port. Like i mentioned ealier, i am using the following nuget packages. MigraDoc.Rendering.Core, PdfSharpCore, PdfSharp.Charting.Core, MigraDoc.DocumentObjectModel.Core
– Usman Ashraf
Mar 25 at 21:59
So you are using an inofficial port of PDFsharp and MigraDoc that was published 9 months ago. I don't know whatGrovel
is, but maybe a Grovel expert or a person familiar with that specific port can help you. Image handling within this port is different from the standard implementation.
– Vive la déraison
Mar 26 at 10:19
Ok. Thanks again for your help.
– Usman Ashraf
Mar 26 at 11:36
I assume you are using a port of MigraDoc. Which one?
– Vive la déraison
Mar 25 at 20:08
I assume you are using a port of MigraDoc. Which one?
– Vive la déraison
Mar 25 at 20:08
Thanks for the reply. Sorry, no idea about the port. Like i mentioned ealier, i am using the following nuget packages. MigraDoc.Rendering.Core, PdfSharpCore, PdfSharp.Charting.Core, MigraDoc.DocumentObjectModel.Core
– Usman Ashraf
Mar 25 at 21:59
Thanks for the reply. Sorry, no idea about the port. Like i mentioned ealier, i am using the following nuget packages. MigraDoc.Rendering.Core, PdfSharpCore, PdfSharp.Charting.Core, MigraDoc.DocumentObjectModel.Core
– Usman Ashraf
Mar 25 at 21:59
So you are using an inofficial port of PDFsharp and MigraDoc that was published 9 months ago. I don't know what
Grovel
is, but maybe a Grovel expert or a person familiar with that specific port can help you. Image handling within this port is different from the standard implementation.– Vive la déraison
Mar 26 at 10:19
So you are using an inofficial port of PDFsharp and MigraDoc that was published 9 months ago. I don't know what
Grovel
is, but maybe a Grovel expert or a person familiar with that specific port can help you. Image handling within this port is different from the standard implementation.– Vive la déraison
Mar 26 at 10:19
Ok. Thanks again for your help.
– Usman Ashraf
Mar 26 at 11:36
Ok. Thanks again for your help.
– Usman Ashraf
Mar 26 at 11:36
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344475%2fpdf-sharp-and-migradocs-image-issue-in-net-core%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344475%2fpdf-sharp-and-migradocs-image-issue-in-net-core%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I assume you are using a port of MigraDoc. Which one?
– Vive la déraison
Mar 25 at 20:08
Thanks for the reply. Sorry, no idea about the port. Like i mentioned ealier, i am using the following nuget packages. MigraDoc.Rendering.Core, PdfSharpCore, PdfSharp.Charting.Core, MigraDoc.DocumentObjectModel.Core
– Usman Ashraf
Mar 25 at 21:59
So you are using an inofficial port of PDFsharp and MigraDoc that was published 9 months ago. I don't know what
Grovel
is, but maybe a Grovel expert or a person familiar with that specific port can help you. Image handling within this port is different from the standard implementation.– Vive la déraison
Mar 26 at 10:19
Ok. Thanks again for your help.
– Usman Ashraf
Mar 26 at 11:36