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) {
|
||||
const transfers = imgData ? [imgData.data.buffer] : null;
|
||||
|
||||
if (this.parsingType3Font) {
|
||||
return this.handler.send(
|
||||
"commonobj",
|
||||
[objId, "FontType3Res", imgData],
|
||||
transfers
|
||||
);
|
||||
}
|
||||
if (cacheGlobally) {
|
||||
if (this.parsingType3Font || cacheGlobally) {
|
||||
return this.handler.send(
|
||||
"commonobj",
|
||||
[objId, "Image", imgData],
|
||||
|
@ -2265,7 +2265,6 @@ class WorkerTransport {
|
||||
});
|
||||
break;
|
||||
case "FontPath":
|
||||
case "FontType3Res":
|
||||
case "Image":
|
||||
this.commonObjs.resolve(id, exportedData);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user