Skip to content

Commit af371da

Browse files
committed
Merge branch 'release/5.5.12'
2 parents 27a8e8d + 890f2f8 commit af371da

File tree

100 files changed

+1895
-545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1895
-545
lines changed

BUILDING.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
To build iText, Maven must be installed: http://maven.apache.org/
2-
3-
Running install without a profile will generate the itextpdf jar:
4-
5-
```mvn install```
6-
7-
When using the profile 'all' also the source and javadoc jars will be generated:
8-
9-
```mvn install -P all```
10-
11-
If you are in need of the asian font jars, you can run one of the following commands:
12-
13-
```mvn clean install -f itext-asian.pom```
14-
```mvn clean install -f itext-asiancmaps.pom```
15-
16-
If you need the hyphenation jar, execute:
17-
18-
```mvn clean install -f itext-hyph-xml.pom```
1+
To build **iText 5 .NET** (aka iTextSharp), you need to build `src/BuildAll.sln`.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ iText is licensed as [AGPL][agpl] software.
2424

2525
AGPL is a free / open source software license.
2626

27-
This doesn't mean the software is gratis!
27+
This doesn't mean the software is [gratis][gratis]!
2828

2929
Buying a license is mandatory as soon as you develop commercial activities
3030
distributing the iText software inside your product or deploying it on a network
@@ -39,3 +39,4 @@ Contact sales for more info: http://itextpdf.com/sales
3939
[agpl]: LICENSE.md
4040
[building]: BUILDING.md
4141
[contributing]: CONTRIBUTING.md
42+
[gratis]: https://en.wikipedia.org/wiki/Gratis_versus_libre

src/core/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
[assembly: ComVisibleAttribute(false)]
1818

19-
[assembly: AssemblyVersion("5.5.11")]
19+
[assembly: AssemblyVersion("5.5.12")]

src/core/iTextSharp/text/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public sealed class Version {
7272
* This String contains the version number of this iText release.
7373
* For debugging purposes, we request you NOT to change this constant.
7474
*/
75-
static private String release = "5.5.11";
75+
static private String release = "5.5.12";
7676

7777
/**
7878
* This String contains the iText version as shown in the producer line.

src/core/iTextSharp/text/error_messages/en.lng

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ an.uncolored.pattern.was.expected=An uncolored pattern was expected.
7474
an.uncolored.tile.pattern.can.not.have.another.pattern.or.shading.as.color=An uncolored tile pattern can not have another pattern or shading as color.
7575
annotation.of.type.1.should.have.contents.key=Annotation of type {1} should have Contents key.
7676
annotation.type.1.not.allowed=Annotation type {1} not allowed.
77+
annotation.type.not.supported.flattening=This annotation is not supported for flattening. Skipping this annotation.
7778
appearance.dictionary.of.widget.subtype.and.btn.field.type.shall.contain.only.the.n.key.with.dictionary.value=Appearance dictionary of Widget subtype and Btn field type shall contain only the n key with dictionary value
7879
appearance.dictionary.shall.contain.only.the.n.key.with.stream.value=Appearance dictionary shall contain only the N key with stream value.
7980
append.mode.does.not.support.changing.the.encryption.status=Append mode does not support changing the encryption status.
@@ -167,6 +168,7 @@ error.in.base64.code.reading.stream=Error in Base64 code reading stream.
167168
error.parsing.cmap.beginbfchar.expected.cosstring.or.cosname.and.not.1=Error parsing CMap beginbfchar, expected {COSString or COSName} and not {1}
168169
error.reading.objstm=Error reading ObjStm
169170
error.reading.string=Error reading string
171+
error.resolving.freetext.font=Cannot resolve annotation's font. It won't be flattened
170172
error.with.jp.marker=Error with JP Marker
171173
every.annotation.shall.have.at.least.one.appearance.dictionary=Every annotation shall have at least one appearance dictionary
172174
exactly.one.colour.space.specification.shall.have.the.value.0x01.in.the.approx.field=Exactly one colour space specification shall have the value 0x01 in the APPROX field.
@@ -194,6 +196,7 @@ font.1.with.2.is.not.recognized=Font '{1}' with '{2}' is not recognized.
194196
font.and.size.must.be.set.before.writing.any.text=Font and size must be set before writing any text
195197
font.size.too.small.1=Font size too small: {1}
196198
fontfactoryimp.cannot.be.null=FontFactoryImp cannot be null.
199+
freetext.annotation.doesnt.contain.da=FreeText Annotation doesn't contain a DA. Not flattening this annotation.
197200
freetext.flattening.is.not.supported.in.append.mode=FreeText flattening is not supported in append mode.
198201
annotation.flattening.is.not.supported.in.append.mode=Annotation flattening is not supported in append mode.
199202
getcell.at.illegal.index.1.max.is.2=getCell at illegal index :{1} max is {2}
@@ -272,6 +275,7 @@ it.is.not.possible.to.free.reader.in.merge.fields.mode=It is not possible to fre
272275
java.awt.image.fetch.aborted.or.errored=java.awt.Image fetch aborted or errored
273276
java.awt.image.interrupted.waiting.for.pixels=java.awt.Image Interrupted waiting for pixels!
274277
jpeg2000.enumerated.colour.space.19.(CIEJab).shall.not.be.used=JPEG2000 enumerated colour space 19 (CIEJab) shall not be used.
278+
key.is.null=key is null.
275279
keyword.encrypt.shall.not.be.used.in.the.trailer.dictionary=Keyword Encrypt shall not be used in the trailer dictionary.
276280
lab.cs.black.point=The BlackPoint entry in Lab color space could be only an array of three numbers [XB YB ZB]. All three of these numbers shall be non-negative. Default value: [0.0 0.0 0.0].
277281
lab.cs.range=The Range entry in Lab color space could be only an array of four numbers [amin amax bmin bmax]. Default value: [-100 100 -100 100].
@@ -392,6 +396,7 @@ stdcf.not.found.encryption=/StdCF not found (encryption)
392396
stream.could.not.be.compressed.filter.is.not.a.name.or.array=Stream could not be compressed: filter is not a name or array.
393397
stream.object.dictionary.shall.not.contain.the.f.ffilter.or.fdecodeparams.keys=Stream object dictionary shall not contain the F, FFilter or FDecodeParams keys.
394398
structparent.not.found=StructParent not found.
399+
structparentid.not.found=StructParent ID not found.
395400
support.only.sha1.hash.algorithm=Support only SHA1 hash algorithm.
396401
support.only.rsa.and.dsa.algorithms=Support only RSA and DSA algorithms.
397402
invalid.structparent=Invalid StructParent.

src/core/iTextSharp/text/error_messages/nl.lng

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ an.uncolored.pattern.was.expected=Er werd een ongekleurd patroon verwacht.
7474
an.uncolored.tile.pattern.can.not.have.another.pattern.or.shading.as.color=Een ongekleurd tile pattern kan geen ander pattern of shading als color gebruiken.
7575
annotation.of.type.1.should.have.contents.key=Annotation van type {1} moet een Contents sleutel hebben.
7676
annotation.type.1.not.allowed=Annotation type {1} niet toegelaten.
77+
annotation.type.not.supported.flattening=Dit annotatie type is niet ondersteund tijdens het flattenen. Deze wordt overgeslaan.
7778
appearance.dictionary.of.widget.subtype.and.btn.field.type.shall.contain.only.the.n.key.with.dictionary.value=Appearance dictionary van subtype Widget en field type Btn mag enkel de N sleutel met als waarde een Dictionaty bevatten
7879
appearance.dictionary.shall.contain.only.the.n.key.with.stream.value=Appearance dictionary mag enkel de N sleutel met een stream waarde bevatten.
7980
append.mode.does.not.support.changing.the.encryption.status=Append mode laat geen wijziging toe van de encryptie status.
@@ -167,6 +168,7 @@ error.in.base64.code.reading.stream=Fout in de Base64 code reading stream.
167168
error.parsing.cmap.beginbfchar.expected.cosstring.or.cosname.and.not.1=Fout bij het parsen van CMap beginbfchar, {COSString or COSName} verwacht in plaats van {1}
168169
error.reading.objstm=Fout tijdens het lezen van ObjStm
169170
error.reading.string=Fout bij het lezen van een string
171+
error.resolving.freetext.font=Kan het lettertype van annotatie niet oplossen. Het wordt niet afgedrukt
170172
error.with.jp.marker=Foute JP Marker
171173
every.annotation.shall.have.at.least.one.appearance.dictionary=Elke annotation moet ten minste 1 appearance dictionary hebben
172174
exactly.one.colour.space.specification.shall.have.the.value.0x01.in.the.approx.field=Exact 1 colour space specificatie moet de waarde 0x01 in het APPROX veld hebben.
@@ -194,6 +196,7 @@ font.1.with.2.is.not.recognized=Font '{1}' met '{2}' werd niet herkend.
194196
font.and.size.must.be.set.before.writing.any.text=Font en size moeten bepaald zijn vooraleer je tekst schrijft.
195197
font.size.too.small.1=Font size te klein: {1}
196198
fontfactoryimp.cannot.be.null=FontFactoryImp kan niet null zijn.
199+
freetext.annotation.doesnt.contain.da=FreeText Annotatie bevat geen DA. Deze annotatie kan niet worden geflattened en wordt overgeslaan.
197200
freetext.flattening.is.not.supported.in.append.mode=FreeText flattening is niet ondersteund in append mode.
198201
annotation.flattening.is.not.supported.in.append.mode=Het flattenen van annotations is niet ondersteund in append mode.
199202
getcell.at.illegal.index.1.max.is.2=getCell op ongeldige index:{1} maximum: {2}
@@ -272,6 +275,7 @@ it.is.not.possible.to.free.reader.in.merge.fields.mode=freeReader is niet mogeli
272275
java.awt.image.fetch.aborted.or.errored=Ophalen van java.awt.Image afgebroken of misgelopen.
273276
java.awt.image.interrupted.waiting.for.pixels=java.awt.Image onderbroken; aan het wachten op pixels!
274277
jpeg2000.enumerated.colour.space.19.(CIEJab).shall.not.be.used=JPEG2000 enumerated colour space 19 (CIEJab) mag niet gebruikt worden.
278+
key.is.null=sleutel is nul.
275279
keyword.encrypt.shall.not.be.used.in.the.trailer.dictionary=Keyword Encrypt mag niet gebruikt worden in de trailer dictionary.
276280
lab.cs.black.point=De BlackPoint entry in Lab color space mag enkel een array zijn van drie getallen [XB YB ZB]. Al deze getallen moeten niet-negatief zijn. Standaardwaarde: [0.0 0.0 0.0].
277281
lab.cs.range=De Range entry in Lab color space mag enkel een array zijn van vier getallen [amin amax bmin bmax]. Standaardwaarde: [-100 100 -100 100].
@@ -392,6 +396,7 @@ stdcf.not.found.encryption=/StdCF niet gevonden (encryption)
392396
stream.could.not.be.compressed.filter.is.not.a.name.or.array=Stream kon niet gecomprimeerd worden: de filter is geen naam of array.
393397
stream.object.dictionary.shall.not.contain.the.f.ffilter.or.fdecodeparams.keys=Stream object dictionary mag geen F, FFilter of FDecodeParams sleutels bevatten.
394398
structparent.not.found=StructParent niet gevonden.
399+
structparentid.not.found=StructParent ID niet gevonden.
395400
support.only.sha1.hash.algorithm=Enkel ondersteuning voor SHA1 hash algoritme.
396401
support.only.rsa.and.dsa.algorithms=Enkel ondersteuning voor RSA en DSA algoritmes.
397402
invalid.structparent=Ongeldige StructParent.

src/core/iTextSharp/text/pdf/AcroFields.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ virtual public bool RemoveField(String name, int page) {
17601760
PdfIndirectReference kid = refi;
17611761
while ((refi = wd.GetAsIndirectObject(PdfName.PARENT)) != null) {
17621762
wd = wd.GetAsDict( PdfName.PARENT );
1763-
//if (wd == null) break; //avoid null-reference exceptions in case of removing fields with kids (see SUP-1846)
1763+
if (wd == null) break; //avoid null-reference exceptions in case of removing fields with kids (see SUP-1846)
17641764
PdfArray kids = wd.GetAsArray(PdfName.KIDS);
17651765
if (RemoveRefFromArray(kids, kid) != 0)
17661766
break;

0 commit comments

Comments
 (0)