mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add support for Optional Content in TilingPatterns (issue 15716)
This can't be a particularly common feature, since we've supported Optional Content for over two years and this is the very first TilingPattern-case we've seen.
This commit is contained in:
parent
73c268dc1c
commit
47682985d3
5 changed files with 156 additions and 4 deletions
|
@ -3245,7 +3245,7 @@ class InternalRenderTask {
|
|||
this.commonObjs,
|
||||
this.objs,
|
||||
this.canvasFactory,
|
||||
optionalContentConfig,
|
||||
{ optionalContentConfig },
|
||||
this.annotationCanvasMap,
|
||||
this.pageColors
|
||||
);
|
||||
|
|
|
@ -1022,7 +1022,7 @@ class CanvasGraphics {
|
|||
commonObjs,
|
||||
objs,
|
||||
canvasFactory,
|
||||
optionalContentConfig,
|
||||
{ optionalContentConfig, markedContentStack = null },
|
||||
annotationCanvasMap,
|
||||
pageColors
|
||||
) {
|
||||
|
@ -1051,7 +1051,7 @@ class CanvasGraphics {
|
|||
this.tempSMask = null;
|
||||
this.suspendedCtx = null;
|
||||
this.contentVisible = true;
|
||||
this.markedContentStack = [];
|
||||
this.markedContentStack = markedContentStack || [];
|
||||
this.optionalContentConfig = optionalContentConfig;
|
||||
this.cachedCanvases = new CachedCanvases(this.canvasFactory);
|
||||
this.cachedPatterns = new Map();
|
||||
|
@ -2471,7 +2471,11 @@ class CanvasGraphics {
|
|||
ctx,
|
||||
this.commonObjs,
|
||||
this.objs,
|
||||
this.canvasFactory
|
||||
this.canvasFactory,
|
||||
{
|
||||
optionalContentConfig: this.optionalContentConfig,
|
||||
markedContentStack: this.markedContentStack,
|
||||
}
|
||||
);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue