@qrcommunication/gigapdf-lib 0.55.1 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -1
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/gigapdf.wasm +0 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1133,6 +1133,14 @@ declare class GigaPdfDoc {
|
|
|
1133
1133
|
footer: HeaderFooterSpec | null;
|
|
1134
1134
|
};
|
|
1135
1135
|
renderPage(page: number, scale?: number): Uint8Array;
|
|
1136
|
+
/**
|
|
1137
|
+
* Rasterize a page to a PNG **without the page content stream's text** — glyphs
|
|
1138
|
+
* are suppressed while gradients, shadings, images, vectors and patterns are
|
|
1139
|
+
* preserved. Annotation/widget appearances are still painted in full. Use this
|
|
1140
|
+
* to paint a text-free raster background the editor can overlay real, editable
|
|
1141
|
+
* text on top of.
|
|
1142
|
+
*/
|
|
1143
|
+
renderPageNoText(page: number, scale?: number): Uint8Array;
|
|
1136
1144
|
/**
|
|
1137
1145
|
* Embed an outline font program as a Type0 font and return its object number
|
|
1138
1146
|
* (pass to {@link addText} / re-encoded by {@link replaceText}). Accepts
|
package/dist/index.d.ts
CHANGED
|
@@ -1133,6 +1133,14 @@ declare class GigaPdfDoc {
|
|
|
1133
1133
|
footer: HeaderFooterSpec | null;
|
|
1134
1134
|
};
|
|
1135
1135
|
renderPage(page: number, scale?: number): Uint8Array;
|
|
1136
|
+
/**
|
|
1137
|
+
* Rasterize a page to a PNG **without the page content stream's text** — glyphs
|
|
1138
|
+
* are suppressed while gradients, shadings, images, vectors and patterns are
|
|
1139
|
+
* preserved. Annotation/widget appearances are still painted in full. Use this
|
|
1140
|
+
* to paint a text-free raster background the editor can overlay real, editable
|
|
1141
|
+
* text on top of.
|
|
1142
|
+
*/
|
|
1143
|
+
renderPageNoText(page: number, scale?: number): Uint8Array;
|
|
1136
1144
|
/**
|
|
1137
1145
|
* Embed an outline font program as a Type0 font and return its object number
|
|
1138
1146
|
* (pass to {@link addText} / re-encoded by {@link replaceText}). Accepts
|
package/dist/index.js
CHANGED
|
@@ -1216,6 +1216,16 @@ var GigaPdfDoc = class {
|
|
|
1216
1216
|
renderPage(page, scale = 1) {
|
|
1217
1217
|
return this.g._buffer((o) => this.ex().gp_render_page(this.h, page, scale, o));
|
|
1218
1218
|
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Rasterize a page to a PNG **without the page content stream's text** — glyphs
|
|
1221
|
+
* are suppressed while gradients, shadings, images, vectors and patterns are
|
|
1222
|
+
* preserved. Annotation/widget appearances are still painted in full. Use this
|
|
1223
|
+
* to paint a text-free raster background the editor can overlay real, editable
|
|
1224
|
+
* text on top of.
|
|
1225
|
+
*/
|
|
1226
|
+
renderPageNoText(page, scale = 1) {
|
|
1227
|
+
return this.g._buffer((o) => this.ex().gp_render_page_no_text(this.h, page, scale, o));
|
|
1228
|
+
}
|
|
1219
1229
|
// fonts — embed a downloaded font, then add real selectable text
|
|
1220
1230
|
/**
|
|
1221
1231
|
* Embed an outline font program as a Type0 font and return its object number
|