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

Master #33

Closed
wants to merge 95 commits into from
Closed

Master #33

wants to merge 95 commits into from

Conversation

Rampradeepb
Copy link

Hi,

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/imaging/ImageFormats
at com.itextpdf.text.pdf.pdfcleanup.PdfCleanUpRenderListener.processImage(PdfCleanUpRenderListener.java:316)

The import class has typo mistake in PdfCleanUpRenderListener.java

org/apache/commons/imaging/ImageFormats (Wrong)
org/apache/commons/imaging/ImageFormat (Correct)

Thanks,

Benoit Lagae and others added 30 commits October 4, 2016 16:01
Conflicts:
	itext/src/main/java/com/itextpdf/text/Version.java
Additional changes required on Jenkins:
* Install JDK 5 and 7
* Set environment variables JAVA5_HOME and JAVA7_HOME
* Run Maven with -P compileWithLegacyJDK

Closes QA-93
Fix Field rotation not taken into account when flattening fields,
Add test-files for flattening rotated form fields to flattening test

DEV-1817
Fix matrix not being overwritten when no scaling is necessary
Form fields flattened into XObject and placed in the same way as
adobe flattening.

DEV-1817, SUP-1612
dlichtenberger-chemdox and others added 25 commits July 25, 2017 16:56
It doesn't make sense from pdf point to have dictionary with null
key.

DEV-1862
The whole point of disabled fractional metrics is to round up scaled
font metrics to integers, so calculating bounds in not original
scale and then scaling it down didn't make sense.

DEV-1881
Note that RenderingHints may still be different for PdfGraphics2D
and inner Graphics2D if someone explicitly gets rendering hints and
will change then not through PdfGraphics2D.

DEV-1881
Jenkins was failing the test containing Cyrillic characters
This logic is closer to how Acrobat displays freetext annotations,
and also fixes NPE while processing such annotations with
PdfContentStreamProcessor after flattening.

DEV-1896
Acrobat resolves such names in DA as well.

DEV-1896
DEV-1885
@iText-CI
Copy link
Contributor

iText-CI commented Oct 5, 2017

Can one of the admins verify this patch?

@blagae
Copy link
Contributor

blagae commented Oct 5, 2017

Hi @Rampradeepb ,

That seems to be incorrect: the enum ImageFormats is clearly available, as you can see here: https://github.com/apache/commons-imaging/tree/master/src/main/java/org/apache/commons/imaging

If you have a NoClassDefFoundError, then any of several problems may be occurring, but most likely it is a dependency issue in your project. A few suggestions:

  • you do not have a dependency that contains this class on your classpath
  • you have several dependencies that contain this class on your classpath
  • the platform you're developing on, apparently Android given the fact that you're trying to merge into the itextg branch, may have an old build of this commons.imaging that does not contain this class.

I am closing this PR, because it isn't a contribution to iText.

@blagae blagae closed this Oct 5, 2017
@blagae
Copy link
Contributor

blagae commented Oct 6, 2017

@Rampradeepb a commit from 2013 in commons-imaging has apparently renamed this enum. So if you are sure that you have one, and only one, version of commons-imaging on your classpath, then you should probably build commons-imaging from an up to date version of the source code.

@Rampradeepb
Copy link
Author

Ok Sure. Thanks for the help

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