mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 10:55:12 +00:00
gnujpdf transparent colors
gnujpdf clipping fix gnujpdf matrix number format fix
This commit is contained in:
@@ -95,6 +95,8 @@ public class PDFPage extends PDFObject implements Serializable {
|
||||
|
||||
protected Vector<String> shadingResources;
|
||||
|
||||
protected Vector<String> extGStateResources;
|
||||
|
||||
/**
|
||||
* The fonts associated with this page
|
||||
*/
|
||||
@@ -134,6 +136,7 @@ public class PDFPage extends PDFObject implements Serializable {
|
||||
imageResources = new Vector<String>();
|
||||
patternResources = new Vector<>();
|
||||
shadingResources = new Vector<>();
|
||||
extGStateResources = new Vector<>();
|
||||
fonts = new Vector<PDFFont>();
|
||||
procset = null;
|
||||
}
|
||||
@@ -450,6 +453,10 @@ public class PDFPage extends PDFObject implements Serializable {
|
||||
shadingResources.add(resource);
|
||||
}
|
||||
|
||||
public void addExtGStateResource(String resource) {
|
||||
extGStateResources.add(resource);
|
||||
}
|
||||
|
||||
/**
|
||||
* This adds an object that describes a thumbnail for this page.
|
||||
* <p>
|
||||
@@ -590,6 +597,15 @@ public class PDFPage extends PDFObject implements Serializable {
|
||||
os.write(" >> ".getBytes());
|
||||
}
|
||||
|
||||
if (extGStateResources.size() > 0) {
|
||||
os.write("/ExtGState << ".getBytes());
|
||||
for (String str : extGStateResources) {
|
||||
os.write(str.getBytes());
|
||||
os.write(" ".getBytes());
|
||||
}
|
||||
os.write(" >> ".getBytes());
|
||||
}
|
||||
|
||||
os.write(">>\n".getBytes());
|
||||
|
||||
// The thumbnail
|
||||
|
||||
Reference in New Issue
Block a user