PDFDocument pdfDoc = new PDFDocument(null);\r
PDFResources res = new PDFResources(pdfDoc);\r
PDFDictionary shadingDict = new PDFDictionary();\r
- shadingDict.put("Sh1-1718006973", new PDFReference("9 0"));\r
+ shadingDict.put("Sh1-1718006973", new PDFReference("9 0 R"));\r
res.put("Shading", shadingDict);\r
PDFDictionary patternDict = new PDFDictionary();\r
- patternDict.put("Pa1-1718006973", new PDFReference("10 0"));\r
+ patternDict.put("Pa1-1718006973", new PDFReference("10 0 R"));\r
res.put("Pattern", patternDict);\r
PDFDictionary colorSpaceDict = new PDFDictionary();\r
- colorSpaceDict.put("DefaultRGB", new PDFReference("11 0"));\r
+ colorSpaceDict.put("DefaultRGB", new PDFReference("11 0 R"));\r
res.put("ColorSpace", colorSpaceDict);\r
PDFResources resParent = new PDFResources(pdfDoc);\r
res.setParentResources(resParent);\r