mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 04:22:20 +00:00
M1: define the Info object in the testkit README example (#6191)
This commit is contained in:
1 file changed
+1
@@ -26,6 +26,7 @@ let bytes = Pdf::new()
|
||||
.obj("<< /Type /Pages /Kids [3 0 R] /Count 1 >>")
|
||||
.obj("<< /Type /Page /Parent 2 0 R /Contents 4 0 R >>")
|
||||
.stream("", b"BT /F1 12 Tf (hi) Tj ET") // /Length computed
|
||||
.obj("<< /Producer (pdfcraft-testkit example) >>") // becomes 5 0 R
|
||||
.trailer_entry("/Info 5 0 R")
|
||||
.build();
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user