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

.GetText() works, .GetImage() doesn't on first page on test file, wikipedia_0.pdf #40

Closed
Triazic opened this issue May 20, 2021 · 3 comments

Comments

@Triazic
Copy link

Triazic commented May 20, 2021

Describe the bug
.GetText() works, .GetImage() doesn't on first page of your test file, wikipedia_0.pdf

To Reproduce
Steps to reproduce the behavior:

  1. use .net 5.0
  2. add Docnet.Core package and System.Drawing.Common
  3. build unit test involving .GetText and .GetImage
  4. Fails

Expected behavior
Image is created

Screenshots
image

Desktop (please complete the following information):
Windows
.net 5
unit test via Microsoft.VisualStudio.TestTools.UnitTesting

@Triazic
Copy link
Author

Triazic commented May 20, 2021

also I can't see pdfium.dll anywhere in my repo. Should I have downloaded this externally and set up the copying manually in csproj etc?

@Modest-as
Copy link
Member

Modest-as commented May 28, 2021

Hi, I couldn't replicate this, you don't need to do anything. Just clone the latest master, then restore nuget packages and run tests in NugetUsageAnyCpu csproj. Pdfium dependencies will be pulled from nuget using standard dotnet folder structure.

@Triazic
Copy link
Author

Triazic commented May 28, 2021

This wasn't using the source, this was using the published version of Docnet.Core on NuGet. https://www.nuget.org/packages/Docnet.Core/2.2.0
I got your test pdf from source, though

Would have been 2.2.0 at the time

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

2 participants