Skip to content

Commit 0212c82

Browse files
author
Austin Hyde
committed
Add image index to jpg image info
1 parent 3bac133 commit 0212c82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/koadweb/javafpdf/FPDF.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ protected Map<String, Object> _parsejpg(final File file) {
613613
image.put("cs", colspace);
614614
image.put("bpc", 8);
615615
image.put("f", "DCTDecode");
616+
image.put("i", Integer.valueOf(this.images.size() + 1));
616617

617618
InputStream f = new FileInputStream(file);
618619
byte[] data = new byte[f.available()];

0 commit comments

Comments
 (0)