Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/core/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ class Annotation {
const isLocked = !!(this.flags & AnnotationFlag.LOCKED);
const isContentLocked = !!(this.flags & AnnotationFlag.LOCKEDCONTENTS);

console.log(annotationGlobals.structTreeRoot);
if (annotationGlobals.structTreeRoot) {
let structParent = dict.get("StructParent");
structParent =
Expand Down
6 changes: 6 additions & 0 deletions src/core/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import { FileSpec } from "./file_spec.js";
import { GlobalImageCache } from "./image_utils.js";
import { MetadataParser } from "./metadata_parser.js";
import { StructTreeRoot } from "./struct_tree.js";
import { FlateStream } from "./flate_stream.js";

function isValidExplicitDest(dest) {
if (!Array.isArray(dest) || dest.length < 2) {
Expand Down Expand Up @@ -1816,6 +1817,11 @@ class ExtendedCatalog extends Catalog {
if (el instanceof Dict && el.has("Obj")) {
const obj = el.get("Obj");
let type = null;

if (obj instanceof FlateStream) {
return null;
}

if (obj.has("Type")) {
type = obj.get("Type").name;
}
Expand Down
3 changes: 0 additions & 3 deletions src/core/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,10 @@ class Page {
intentPrint = !!(intent & RenderingIntentFlag.PRINT),
intentOplist = !!(intent & RenderingIntentFlag.OPLIST);

console.log(annotations);
for (const annotation of annotations) {
// Get the annotation even if it's hidden because
// JS can change its display.
const isVisible = intentAny || (intentDisplay && annotation.viewable);
console.log(isVisible, intentPrint && annotation.printable, intentOplist);
if (isVisible || (intentPrint && annotation.printable) || intentOplist) {
annotationsData.push(annotation.data);
}
Expand Down Expand Up @@ -797,7 +795,6 @@ class Page {
}

await Promise.all(textContentPromises);
console.log("annotationsData", annotationsData);
return annotationsData;
}

Expand Down
1 change: 0 additions & 1 deletion src/core/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ class WorkerMessageHandler {

function setupDoc(data) {
function onSuccess(doc) {
console.log(doc);
ensureNotTerminated();
handler.send("GetDoc", { pdfInfo: doc });
}
Expand Down
1 change: 0 additions & 1 deletion src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,6 @@ class LoopbackPort {
#deferred = Promise.resolve();

postMessage(obj, transfer) {
console.log(obj);
const event = {
data: structuredClone(obj, transfer ? { transfer } : null),
};
Expand Down
Loading