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

COSVisitorException not found error in ApacheBox 2.0.6 #18

Open
jpninanjohn opened this issue May 31, 2017 · 2 comments
Open

COSVisitorException not found error in ApacheBox 2.0.6 #18

jpninanjohn opened this issue May 31, 2017 · 2 comments
Labels

Comments

@jpninanjohn
Copy link

I'm using pdfLayoutManagaer 0.4.0 and apache Box 2.0.6. I keep getting this error when I compile the project.

 Error:(102, 21) java: cannot access org.apache.pdfbox.exceptions.COSVisitorException
  class file for org.apache.pdfbox.exceptions.COSVisitorException not found
@jpninanjohn
Copy link
Author

I tried using an older version of pdfbox(1.8.13) and it works.

@GlenKPeterson
Copy link
Owner

GlenKPeterson commented May 31, 2017

PDFBox 2.x removed COSVisitorException entirely and PdfLayoutManager 0.5.x does not reference it any more. Here is the PDFBox 2.x Migration guide.

If you reference COSVisitorException in your own code, remove COSVisitorException or replace it with IOException or Exception wherever you use it.

If you have a stale version of PdfLayoutManager, maybe do a git pull followed by mvn clean install and/or flush caches and restart in your IDE.

Someone else asked for PDFBox 2.x compatibility, so I tried to provide that quickly. I'm still adjusting my own client code and there will probably be many changes in the next few weeks because I'm making new PDFs at work. If you want every latest feature, or want to contribute, I'd love to have you on the latest version. If you want stability, you might want to stick with PdfLayoutManager 0.4.0 and PDFBox 1.8.13 for a month or so until the changes calm down again. I probably should have named the release 0.5.0-RC1 or something, but once it's on Sonatype, I don't know how to take it down or rename it.

Thank you for your interest!

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

No branches or pull requests

2 participants