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

[PDF]: No image available at index: 0 #1

Closed
vangogih opened this issue Sep 13, 2018 · 1 comment
Closed

[PDF]: No image available at index: 0 #1

vangogih opened this issue Sep 13, 2018 · 1 comment

Comments

@vangogih
Copy link

Cannot load PDF file.

All code in PdfToImage.dll obfuscation. I can't understand how work methods ReadPdf and GetDrawImageFromPdf(), so I can not solve this problem.
Path to PDF file looks like: C:\Users\Nikolay\Desktop\test.pdf

In scene i have:

  • RawImage
  • 3 Buttons:
  • load (btnClick(InitialisePdf(InputField path)))
  • next (btnCluck(ShowNextPage())
  • prev (btnClick(ShowPrevPage())
  • InputField
  • Text

All reference already have.

@vangogih
Copy link
Author

vangogih commented Sep 16, 2018

List of actions that helped me solve the problem:

  1. Make sure that the libs folder contains all the necessary libraries.
  • pdfium.dll
  • PdfToImage.dll
  • PdfiumViewer.dll
  • System.Drawing.Design.dll
  • PdfiumViewer.resources.dll
  • System.Drawing.dll
  1. Playser Settings:
  • ScriptingRuntimeVersion -> .NET4.x equivalent
  • ScriptingImplementation -> Mono
  • ApiCompatibilityLevel -> .NET 4.6
  1. Make sure that the file path is set correctly

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

1 participant