renderpdf-js 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +389 -2
- package/assets/renderpdf-logo.png +0 -0
- package/dist/api-types.d.ts +143 -0
- package/dist/breaks.d.ts +7 -0
- package/dist/diagnostics.d.ts +26 -0
- package/dist/export-options.d.ts +12 -0
- package/dist/fonts.d.ts +9 -0
- package/dist/image-geometry.d.ts +19 -0
- package/dist/image-input.d.ts +19 -0
- package/dist/image-pdf.d.ts +7 -0
- package/dist/images.d.ts +4 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2388 -0
- package/dist/layout.d.ts +24 -0
- package/dist/page-bands.d.ts +24 -0
- package/dist/page.d.ts +9 -0
- package/dist/pagination.d.ts +21 -0
- package/dist/pdf.d.ts +40 -0
- package/dist/planner.d.ts +9 -0
- package/dist/prepare.d.ts +17 -0
- package/dist/progress.d.ts +11 -0
- package/dist/raster.d.ts +20 -0
- package/dist/render-pdf.d.ts +21 -0
- package/dist/result.d.ts +10 -0
- package/dist/table-borders.d.ts +52 -0
- package/dist/text.d.ts +48 -0
- package/dist/tiff.d.ts +23 -0
- package/dist/types.d.ts +122 -0
- package/package.json +79 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ImagePDFOptions, ImageSource, RenderPDFResult } from './api-types.js';
|
|
2
|
+
/** Convert one standalone PNG/JPEG or every main TIFF frame to an immutable PDF result. */
|
|
3
|
+
export declare function imageToPDF(
|
|
4
|
+
/** Complete image bytes or browser File/Blob; filenames and MIME types do not determine decoding. */
|
|
5
|
+
source: ImageSource,
|
|
6
|
+
/** Shared paper settings, metadata, cancellation and optional stage-local progress. */
|
|
7
|
+
options?: ImagePDFOptions): Promise<RenderPDFResult>;
|
package/dist/images.d.ts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { renderPDF } from './render-pdf.js';
|
|
2
|
+
export { imageToPDF } from './image-pdf.js';
|
|
3
|
+
export { registerFont } from './fonts.js';
|
|
4
|
+
export { RenderPDFError } from './diagnostics.js';
|
|
5
|
+
export type { RenderErrorCode, RenderWarning } from './diagnostics.js';
|
|
6
|
+
export type { FontSource, RegisteredFont, PageMargins, PDFPageOptions, ImageSource, ImagePDFOptions, CustomPageSize, PageTextOptions, PDFMetadata, RenderStage, RenderProgress, RenderPDFOptions, RenderPDFResult, } from './api-types.js';
|