MCPcopy Create free account
hub / github.com/LibPDF-js/core / flattenLayers

Method flattenLayers

src/api/pdf.ts:2975–2977  ·  view source on GitHub ↗

* Flatten all Optional Content Groups (layers) in the document. * * This removes the OCProperties dictionary from the catalog, which: * - Makes ALL layer content unconditionally visible (nothing is deleted) * - Removes the layer panel/toggle UI from PDF viewers * - Content that was in

()

Source from the content-addressed store, hash-verified

2973 * ```
2974 */
2975 flattenLayers(): FlattenLayersResult {
2976 return LayerUtils.flattenLayers(this.ctx);
2977 }
2978
2979 // ─────────────────────────────────────────────────────────────────────────────
2980 // Annotation Flattening

Callers 3

flattenAllMethod · 0.95
layers.test.tsFile · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected