Skip to content

Commit

Permalink
Increase random digits used for image xObjectKey to 10 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebenlamm authored and Hopding committed Oct 11, 2019
1 parent 43b71cc commit acb837a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/PDFPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ export default class PDFPage {
assertOrUndefined(options.xSkew, 'options.xSkew', [[Object, 'Rotation']]);
assertOrUndefined(options.ySkew, 'options.ySkew', [[Object, 'Rotation']]);

const xObjectKey = addRandomSuffix('Image', 4);
const xObjectKey = addRandomSuffix('Image', 10);
this.node.setXObject(PDFName.of(xObjectKey), image.ref);

const contentStream = this.getContentStream();
Expand Down

0 comments on commit acb837a

Please sign in to comment.