renderpdf-js 0.2.1 → 0.3.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/API.md +204 -0
- package/README.md +71 -10
- package/dist/compose-pdf.d.ts +26 -0
- package/dist/document-colors.d.ts +8 -0
- package/dist/document-page.d.ts +115 -0
- package/dist/document-types.d.ts +135 -0
- package/dist/document.d.ts +64 -0
- package/dist/fonts.d.ts +4 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2051 -552
- package/dist/jspdf-adapter.d.ts +159 -0
- package/package.json +8 -3
package/dist/fonts.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { FontSource, RegisteredFont } from './api-types.js';
|
|
2
|
+
/** Admit only static SFNT programs whose exact browser and PDF instances can agree.
|
|
3
|
+
* @param bytes Owned TTF/OTF program; the browser still validates its actual font tables.
|
|
4
|
+
*/
|
|
5
|
+
export declare function assertStaticSfnt(bytes: Uint8Array): void;
|
|
2
6
|
/** Validate immutable registration handles against the current browser's live font set.
|
|
3
7
|
* @param fonts Explicit handles whose owned programs must still control browser font selection.
|
|
4
8
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,12 @@ export { renderPDF } from './render-pdf.js';
|
|
|
2
2
|
export { imageToPDF } from './image-pdf.js';
|
|
3
3
|
export { registerFont } from './fonts.js';
|
|
4
4
|
export { RenderPDFError } from './diagnostics.js';
|
|
5
|
+
export { createDocument, PDFBuilder } from './document.js';
|
|
6
|
+
export { PDFPageBuilder } from './document-page.js';
|
|
7
|
+
export { mergePDFs, extractPDFPages, splitPDF } from './compose-pdf.js';
|
|
8
|
+
export type { PDFSource, PDFCompositionOptions } from './compose-pdf.js';
|
|
9
|
+
export { createJsPDFAdapter, JsPDFAdapter } from './jspdf-adapter.js';
|
|
10
|
+
export type { JsPDFAdapterFont, JsPDFAdapterTextOptions, JsPDFAdapterMeasureOptions, JsPDFAdapterColorOptions, } from './jspdf-adapter.js';
|
|
11
|
+
export type { DocumentUnit, DocumentPageOptions, PDFDocumentOptions, DocumentFontOptions, DocumentTextMetrics, DocumentRectangle, DocumentShapeOptions, DocumentTextOptions, DocumentLineOptions, DocumentImageSource, DocumentImageOptions, DocumentFieldOptions, DocumentTextFieldOptions, DocumentCheckBoxOptions, DocumentDropdownOptions, DocumentBookmarkOptions, DocumentBookmark, } from './document-types.js';
|
|
5
12
|
export type { RenderErrorCode, RenderWarning } from './diagnostics.js';
|
|
6
13
|
export type { FontSource, RegisteredFont, PageMargins, PDFPageOptions, ImageSource, ImagePDFOptions, CustomPageSize, PageTextOptions, PDFMetadata, RenderStage, RenderProgress, RenderPDFOptions, RenderPDFResult, } from './api-types.js';
|