Send/receive Type3 images the same way as other globally-cached images
There's quite frankly no particular reason to special-case Type3-fonts with image resources, which are very rare anyway, now that we have a general mechanism for sending/receiving images globally.
This commit is contained in:
parent
7c9d0d5939
commit
f3ff526019
@ -455,14 +455,7 @@ class PartialEvaluator {
|
|||||||
_sendImgData(objId, imgData, cacheGlobally = false) {
|
_sendImgData(objId, imgData, cacheGlobally = false) {
|
||||||
const transfers = imgData ? [imgData.data.buffer] : null;
|
const transfers = imgData ? [imgData.data.buffer] : null;
|
||||||
|
|
||||||
if (this.parsingType3Font) {
|
if (this.parsingType3Font || cacheGlobally) {
|
||||||
return this.handler.send(
|
|
||||||
"commonobj",
|
|
||||||
[objId, "FontType3Res", imgData],
|
|
||||||
transfers
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (cacheGlobally) {
|
|
||||||
return this.handler.send(
|
return this.handler.send(
|
||||||
"commonobj",
|
"commonobj",
|
||||||
[objId, "Image", imgData],
|
[objId, "Image", imgData],
|
||||||
|
@ -2265,7 +2265,6 @@ class WorkerTransport {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "FontPath":
|
case "FontPath":
|
||||||
case "FontType3Res":
|
|
||||||
case "Image":
|
case "Image":
|
||||||
this.commonObjs.resolve(id, exportedData);
|
this.commonObjs.resolve(id, exportedData);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user