-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/itext/itext7/releases/tag/7.0.7 * release/7.0.7: Remove jgitflow plugin from POM file [RELEASE] 7.0.7-SNAPSHOT -> 7.0.7 Add new util method. Add another problematic xmp test Remove problematic metadata from form test and add test for it Remove default appearance from AcroForm. Forms. Fix issue with inherited default appearance Update xmp metadata if it was present in document before close Compare producer line on document info comparison Don't loop through initial indirects in compare tool Fix synchronization issues during version creation added category to test DEVSIX-1816 GifTest: close file stream Update compare tool to support new xml autoport mappings add test files after reverting of 7.0 GIF frames are of ImageType GIF Revert "GIF frames are of ImageType GIF" Revert "Add test/test resource to GifImageHelper" Add test/test resource to GifImageHelper Add test/test resource to GifImageHelper Add test/test resource to GifImageHelper GIF frames are of ImageType GIF fix broken test by correcting off-by-one error in RegexBasedLocationExtractionStrategy Add missing copyright headers correct off-by-one mistake in RegexBasedLocationExtractionStrategy Added new constant to PdfException. DefaultAppearanceNotFound. DEVSIX-1769 [RELEASE] 7.0.6-SNAPSHOT -> 7.0.7-SNAPSHOT Guard against NPE in CrlClientOnline Signed-off-by: iText Software (Community) <[email protected]>
- Loading branch information
Showing
48 changed files
with
385 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+180 Bytes
(100%)
.../src/test/resources/com/itextpdf/forms/FormFieldsTaggingTest/cmp_taggedPdfWithForms01.pdf
Binary file not shown.
Binary file modified
BIN
+381 Bytes
(110%)
.../src/test/resources/com/itextpdf/forms/FormFieldsTaggingTest/cmp_taggedPdfWithForms04.pdf
Binary file not shown.
Binary file modified
BIN
+261 Bytes
(110%)
.../src/test/resources/com/itextpdf/forms/FormFieldsTaggingTest/cmp_taggedPdfWithForms06.pdf
Binary file not shown.
Binary file modified
BIN
+52 Bytes
(100%)
.../test/resources/com/itextpdf/forms/PdfFormFieldTest/cmp_autoScaleFontSizeInFormFields.pdf
Binary file not shown.
Binary file modified
BIN
+181 Bytes
(110%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldTest/cmp_buttonFieldTest01.pdf
Binary file not shown.
Binary file modified
BIN
+52 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldTest/cmp_choiceFieldTest01.pdf
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldTest/cmp_formFieldTest02.pdf
Binary file not shown.
Binary file modified
BIN
-2.46 KB
(90%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldTest/regenerateAppearance.pdf
Binary file not shown.
Binary file modified
BIN
+179 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldsCopyTest/cmp_copyFields06.pdf
Binary file not shown.
Binary file modified
BIN
+161 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldsCopyTest/cmp_copyFields07.pdf
Binary file not shown.
Binary file modified
BIN
-20 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldsCopyTest/cmp_copyFields09.pdf
Binary file not shown.
Binary file modified
BIN
-20 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/PdfFormFieldsCopyTest/cmp_copyFields10.pdf
Binary file not shown.
Binary file modified
BIN
-20 Bytes
(98%)
forms/src/test/resources/com/itextpdf/forms/xfa/XFAFormTest/cmp_createEmptyXFAFormTest01.pdf
Binary file not shown.
Binary file modified
BIN
-20 Bytes
(98%)
forms/src/test/resources/com/itextpdf/forms/xfa/XFAFormTest/cmp_createEmptyXFAFormTest02.pdf
Binary file not shown.
Binary file modified
BIN
-20 Bytes
(100%)
forms/src/test/resources/com/itextpdf/forms/xfa/XFAFormTest/cmp_createXFAFormTest.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
This file is part of the iText (R) project. | ||
Copyright (c) 1998-2018 iText Group NV | ||
Authors: iText Software. | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License version 3 | ||
as published by the Free Software Foundation with the addition of the | ||
following permission added to Section 15 as permitted in Section 7(a): | ||
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY | ||
ITEXT GROUP. ITEXT GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT | ||
OF THIRD PARTY RIGHTS | ||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
or FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program; if not, see http://www.gnu.org/licenses or write to | ||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
Boston, MA, 02110-1301 USA, or download the license from the following URL: | ||
http://itextpdf.com/terms-of-use/ | ||
The interactive user interfaces in modified source and object code versions | ||
of this program must display Appropriate Legal Notices, as required under | ||
Section 5 of the GNU Affero General Public License. | ||
In accordance with Section 7(b) of the GNU Affero General Public License, | ||
a covered work must retain the producer line in every PDF that is created | ||
or manipulated using iText. | ||
You can be released from the requirements of the license by purchasing | ||
a commercial license. Buying such a license is mandatory as soon as you | ||
develop commercial activities involving the iText software without | ||
disclosing the source code of your own applications. | ||
These activities include: offering paid services to customers as an ASP, | ||
serving PDFs on the fly in a web application, shipping iText with a closed | ||
source product. | ||
For more information, please contact iText Software Corp. at this | ||
address: [email protected] | ||
*/ | ||
package com.itextpdf.io.image; | ||
|
||
import com.itextpdf.io.util.StreamUtil; | ||
import com.itextpdf.test.annotations.type.UnitTest; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.experimental.categories.Category; | ||
|
||
import java.io.FileInputStream; | ||
import java.io.IOException; | ||
|
||
@Category(UnitTest.class) | ||
public class GifTest { | ||
public static final String sourceFolder = "./src/test/resources/com/itextpdf/io/image/"; | ||
|
||
@Test | ||
public void gifImageTest() throws IOException { | ||
try (FileInputStream file = new FileInputStream(sourceFolder + "WP_20140410_001.gif")) { | ||
byte[] fileContent = StreamUtil.inputStreamToArray(file); | ||
ImageData img = ImageDataFactory.create(fileContent, false); | ||
Assert.assertTrue(img.isRawImage()); | ||
Assert.assertEquals(ImageType.GIF, img.getOriginalType()); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.