Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Obsolete and not implemted any more." exception with PdfGenerator.ParseStylesheet method #177

Open
lavanyadeepak opened this issue Nov 19, 2020 · 2 comments

Comments

@lavanyadeepak
Copy link

lavanyadeepak commented Nov 19, 2020

I have this line of code in my application

Line 268: var cssData = PdfGenerator.ParseStyleSheet(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Content/bootstrap.min.css"));

and I am getting an exception

image

I would like to enclose the version details of individual assemblies below.

image

image

image

image

@JensCarlbergLiU
Copy link

I ran into this too today. My digging found that the NuGet package PdfSharp was updated from 1.32.3057 (released 2013-05-16) to 1.50.5147 (released 2019-02-04), and in this new version there's some methods now throwing InvalidOperationException("Obsolete and not implemted any more."). For example, https://github.com/empira/PDFsharp/blob/1.50-stable/src/PdfSharp/Drawing/XFontFamily.cs line 278.

To get rid of this error, you can downgrade PdfSharp. It would be nice if this project could either indicate it doesn't support later versions of PdfSharp, or was updated to use the latest.

@Deantwo
Copy link

Deantwo commented Feb 3, 2023

I guess there is no chance of this being fixed and a new update for the NuGet pakket being released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants