@ironsoftware/ironpdf 2023.11.2 → 2024.1.1
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/package.json +2 -2
- package/src/internal/IronPdfEngine.ProtoFiles/.gitignore +5 -1
- package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +17 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_annotation.proto +53 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_font.proto +209 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_pdf_document.proto +7 -8
- package/src/internal/access.d.ts.map +1 -1
- package/src/internal/access.js +10 -2
- package/src/internal/access.js.map +1 -1
- package/src/internal/access.ts +10 -2
- package/src/internal/generated_proto/iron_pdf_service.d.ts +35 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
- package/src/internal/generated_proto/iron_pdf_service.ts +35 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +168 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +196 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayRequestStreamP.d.ts +20 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayRequestStreamP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayRequestStreamP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayRequestStreamP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayRequestStreamP.ts +24 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayResultP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaByteArrayResultP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValResultP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontEnumValResultP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameResultP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddFontViaStandardFontNameResultP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAnnotationSubTypesP.d.ts +7 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAnnotationSubTypesP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAnnotationSubTypesP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAnnotationSubTypesP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAnnotationSubTypesP.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayRequestStreamP.d.ts +24 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayRequestStreamP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayRequestStreamP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayRequestStreamP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayRequestStreamP.ts +28 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFontViaByteArrayResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsResultP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFindFontsResultP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFontInfoP.d.ts +2 -4
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFontInfoP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumFontInfoP.ts +2 -4
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsResultP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetAnnotationsResultP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtResultP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetFontInfoAtResultP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameRequestP.d.ts +7 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameRequestP.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumGetStandardFontNameResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationCollectionP.d.ts +8 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationCollectionP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationCollectionP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationCollectionP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationCollectionP.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.d.ts +22 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.ts +25 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfDocumentConstructorStreamP.d.ts +2 -2
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfDocumentConstructorStreamP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfDocumentConstructorStreamP.ts +2 -2
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfFreeTextAnnotationP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfFreeTextAnnotationP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfFreeTextAnnotationP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfFreeTextAnnotationP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfFreeTextAnnotationP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfLinkAnnotationP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfLinkAnnotationP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfLinkAnnotationP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfLinkAnnotationP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfLinkAnnotationP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfTextAnnotationP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfTextAnnotationP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfTextAnnotationP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfTextAnnotationP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfTextAnnotationP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayRequestStreamP.d.ts +24 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayRequestStreamP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayRequestStreamP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayRequestStreamP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayRequestStreamP.ts +28 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaByteArrayResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValRequestP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValRequestP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontEnumValResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameRequestP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameRequestP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumReplaceFontViaStandardFontNameResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameRequestP.d.ts +7 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameRequestP.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameRequestP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameRequestP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumWrappedPdfAnnotationP.d.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumWrappedPdfAnnotationP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumWrappedPdfAnnotationP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumWrappedPdfAnnotationP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumWrappedPdfAnnotationP.ts +18 -0
- package/src/internal/grpc_layer/handshake.d.ts.map +1 -1
- package/src/internal/grpc_layer/handshake.js +5 -1
- package/src/internal/grpc_layer/handshake.js.map +1 -1
- package/src/internal/grpc_layer/handshake.ts +5 -1
- package/src/internal/grpc_layer/pdfium/compress.d.ts +1 -0
- package/src/internal/grpc_layer/pdfium/compress.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/compress.js +20 -1
- package/src/internal/grpc_layer/pdfium/compress.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/compress.ts +33 -6
- package/src/internal/grpc_layer/pdfium/io.d.ts +2 -1
- package/src/internal/grpc_layer/pdfium/io.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/io.js +3 -0
- package/src/internal/grpc_layer/pdfium/io.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/io.ts +15 -13
- package/src/public/pdfDocument.d.ts +16 -3
- package/src/public/pdfDocument.d.ts.map +1 -1
- package/src/public/pdfDocument.js +27 -6
- package/src/public/pdfDocument.js.map +1 -1
- package/src/public/pdfDocument.ts +41 -16
- package/src/public/types.d.ts +5 -0
- package/src/public/types.d.ts.map +1 -1
- package/src/public/types.js +7 -1
- package/src/public/types.js.map +1 -1
- package/src/public/types.ts +6 -0
package/src/internal/generated_proto/ironpdfengineproto/PdfiumResolveStandardFontNameResultP.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_font.proto
|
|
2
|
+
|
|
3
|
+
import type { RemoteExceptionP as _ironpdfengineproto_RemoteExceptionP, RemoteExceptionP__Output as _ironpdfengineproto_RemoteExceptionP__Output } from '../ironpdfengineproto/RemoteExceptionP';
|
|
4
|
+
|
|
5
|
+
export interface PdfiumResolveStandardFontNameResultP {
|
|
6
|
+
'result'?: (string);
|
|
7
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP | null);
|
|
8
|
+
'resultOrException'?: "result"|"exception";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PdfiumResolveStandardFontNameResultP__Output {
|
|
12
|
+
'result'?: (string);
|
|
13
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP__Output);
|
|
14
|
+
}
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
2
|
+
export interface PdfiumUnEmbedFontViaObjNumRequestP {
|
|
3
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
4
|
+
'objNum'?: (number);
|
|
5
|
+
}
|
|
6
|
+
export interface PdfiumUnEmbedFontViaObjNumRequestP__Output {
|
|
7
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
8
|
+
'objNum'?: (number);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=PdfiumUnEmbedFontViaObjNumRequestP.d.ts.map
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaObjNumRequestP.d.ts","sourceRoot":"","sources":["PdfiumUnEmbedFontViaObjNumRequestP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gCAAgC,EAAE,oBAAoB,IAAI,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAE7K,MAAM,WAAW,kCAAkC;IACjD,UAAU,CAAC,EAAE,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,0CAA0C;IACzD,UAAU,CAAC,EAAE,CAAC,wCAAwC,CAAC,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumRequestP.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaObjNumRequestP.js","sourceRoot":"","sources":["PdfiumUnEmbedFontViaObjNumRequestP.ts"],"names":[],"mappings":";AAAA,yEAAyE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_font.proto
|
|
2
|
+
|
|
3
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
4
|
+
|
|
5
|
+
export interface PdfiumUnEmbedFontViaObjNumRequestP {
|
|
6
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
7
|
+
'objNum'?: (number);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface PdfiumUnEmbedFontViaObjNumRequestP__Output {
|
|
11
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
12
|
+
'objNum'?: (number);
|
|
13
|
+
}
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RemoteExceptionP as _ironpdfengineproto_RemoteExceptionP, RemoteExceptionP__Output as _ironpdfengineproto_RemoteExceptionP__Output } from '../ironpdfengineproto/RemoteExceptionP';
|
|
2
|
+
export interface PdfiumUnEmbedFontViaObjNumResultP {
|
|
3
|
+
'result'?: (number);
|
|
4
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP | null);
|
|
5
|
+
'resultOrException'?: "result" | "exception";
|
|
6
|
+
}
|
|
7
|
+
export interface PdfiumUnEmbedFontViaObjNumResultP__Output {
|
|
8
|
+
'result'?: (number);
|
|
9
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP__Output);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=PdfiumUnEmbedFontViaObjNumResultP.d.ts.map
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaObjNumResultP.d.ts","sourceRoot":"","sources":["PdfiumUnEmbedFontViaObjNumResultP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oCAAoC,EAAE,wBAAwB,IAAI,4CAA4C,EAAE,MAAM,wCAAwC,CAAC;AAEjM,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,oCAAoC,GAAG,IAAI,CAAC,CAAC;IAC5D,mBAAmB,CAAC,EAAE,QAAQ,GAAC,WAAW,CAAC;CAC5C;AAED,MAAM,WAAW,yCAAyC;IACxD,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,4CAA4C,CAAC,CAAC;CAC9D"}
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaObjNumResultP.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaObjNumResultP.js","sourceRoot":"","sources":["PdfiumUnEmbedFontViaObjNumResultP.ts"],"names":[],"mappings":";AAAA,yEAAyE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_font.proto
|
|
2
|
+
|
|
3
|
+
import type { RemoteExceptionP as _ironpdfengineproto_RemoteExceptionP, RemoteExceptionP__Output as _ironpdfengineproto_RemoteExceptionP__Output } from '../ironpdfengineproto/RemoteExceptionP';
|
|
4
|
+
|
|
5
|
+
export interface PdfiumUnEmbedFontViaObjNumResultP {
|
|
6
|
+
'result'?: (number);
|
|
7
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP | null);
|
|
8
|
+
'resultOrException'?: "result"|"exception";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PdfiumUnEmbedFontViaObjNumResultP__Output {
|
|
12
|
+
'result'?: (number);
|
|
13
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP__Output);
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
2
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameRequestP {
|
|
3
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
4
|
+
'regexFontName'?: (string);
|
|
5
|
+
}
|
|
6
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameRequestP__Output {
|
|
7
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
8
|
+
'regexFontName'?: (string);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=PdfiumUnEmbedFontViaRegexFontNameRequestP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaRegexFontNameRequestP.d.ts","sourceRoot":"","sources":["PdfiumUnEmbedFontViaRegexFontNameRequestP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gCAAgC,EAAE,oBAAoB,IAAI,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAE7K,MAAM,WAAW,yCAAyC;IACxD,UAAU,CAAC,EAAE,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;IACvD,eAAe,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,iDAAiD;IAChE,UAAU,CAAC,EAAE,CAAC,wCAAwC,CAAC,CAAC;IACxD,eAAe,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaRegexFontNameRequestP.js","sourceRoot":"","sources":["PdfiumUnEmbedFontViaRegexFontNameRequestP.ts"],"names":[],"mappings":";AAAA,yEAAyE"}
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameRequestP.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_font.proto
|
|
2
|
+
|
|
3
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
4
|
+
|
|
5
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameRequestP {
|
|
6
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
7
|
+
'regexFontName'?: (string);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameRequestP__Output {
|
|
11
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
12
|
+
'regexFontName'?: (string);
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RemoteExceptionP as _ironpdfengineproto_RemoteExceptionP, RemoteExceptionP__Output as _ironpdfengineproto_RemoteExceptionP__Output } from '../ironpdfengineproto/RemoteExceptionP';
|
|
2
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameResultP {
|
|
3
|
+
'result'?: (number);
|
|
4
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP | null);
|
|
5
|
+
'resultOrException'?: "result" | "exception";
|
|
6
|
+
}
|
|
7
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameResultP__Output {
|
|
8
|
+
'result'?: (number);
|
|
9
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP__Output);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=PdfiumUnEmbedFontViaRegexFontNameResultP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaRegexFontNameResultP.d.ts","sourceRoot":"","sources":["PdfiumUnEmbedFontViaRegexFontNameResultP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oCAAoC,EAAE,wBAAwB,IAAI,4CAA4C,EAAE,MAAM,wCAAwC,CAAC;AAEjM,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,oCAAoC,GAAG,IAAI,CAAC,CAAC;IAC5D,mBAAmB,CAAC,EAAE,QAAQ,GAAC,WAAW,CAAC;CAC5C;AAED,MAAM,WAAW,gDAAgD;IAC/D,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,4CAA4C,CAAC,CAAC;CAC9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumUnEmbedFontViaRegexFontNameResultP.js","sourceRoot":"","sources":["PdfiumUnEmbedFontViaRegexFontNameResultP.ts"],"names":[],"mappings":";AAAA,yEAAyE"}
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumUnEmbedFontViaRegexFontNameResultP.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_font.proto
|
|
2
|
+
|
|
3
|
+
import type { RemoteExceptionP as _ironpdfengineproto_RemoteExceptionP, RemoteExceptionP__Output as _ironpdfengineproto_RemoteExceptionP__Output } from '../ironpdfengineproto/RemoteExceptionP';
|
|
4
|
+
|
|
5
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameResultP {
|
|
6
|
+
'result'?: (number);
|
|
7
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP | null);
|
|
8
|
+
'resultOrException'?: "result"|"exception";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PdfiumUnEmbedFontViaRegexFontNameResultP__Output {
|
|
12
|
+
'result'?: (number);
|
|
13
|
+
'exception'?: (_ironpdfengineproto_RemoteExceptionP__Output);
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PdfiumPdfTextAnnotationP as _ironpdfengineproto_PdfiumPdfTextAnnotationP, PdfiumPdfTextAnnotationP__Output as _ironpdfengineproto_PdfiumPdfTextAnnotationP__Output } from '../ironpdfengineproto/PdfiumPdfTextAnnotationP';
|
|
2
|
+
import type { PdfiumPdfFreeTextAnnotationP as _ironpdfengineproto_PdfiumPdfFreeTextAnnotationP, PdfiumPdfFreeTextAnnotationP__Output as _ironpdfengineproto_PdfiumPdfFreeTextAnnotationP__Output } from '../ironpdfengineproto/PdfiumPdfFreeTextAnnotationP';
|
|
3
|
+
import type { PdfiumPdfLinkAnnotationP as _ironpdfengineproto_PdfiumPdfLinkAnnotationP, PdfiumPdfLinkAnnotationP__Output as _ironpdfengineproto_PdfiumPdfLinkAnnotationP__Output } from '../ironpdfengineproto/PdfiumPdfLinkAnnotationP';
|
|
4
|
+
export interface PdfiumWrappedPdfAnnotationP {
|
|
5
|
+
'text'?: (_ironpdfengineproto_PdfiumPdfTextAnnotationP | null);
|
|
6
|
+
'freetext'?: (_ironpdfengineproto_PdfiumPdfFreeTextAnnotationP | null);
|
|
7
|
+
'link'?: (_ironpdfengineproto_PdfiumPdfLinkAnnotationP | null);
|
|
8
|
+
'annotations'?: "text" | "freetext" | "link";
|
|
9
|
+
}
|
|
10
|
+
export interface PdfiumWrappedPdfAnnotationP__Output {
|
|
11
|
+
'text'?: (_ironpdfengineproto_PdfiumPdfTextAnnotationP__Output);
|
|
12
|
+
'freetext'?: (_ironpdfengineproto_PdfiumPdfFreeTextAnnotationP__Output);
|
|
13
|
+
'link'?: (_ironpdfengineproto_PdfiumPdfLinkAnnotationP__Output);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PdfiumWrappedPdfAnnotationP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumWrappedPdfAnnotationP.d.ts","sourceRoot":"","sources":["PdfiumWrappedPdfAnnotationP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,IAAI,4CAA4C,EAAE,gCAAgC,IAAI,oDAAoD,EAAE,MAAM,gDAAgD,CAAC;AACzO,OAAO,KAAK,EAAE,4BAA4B,IAAI,gDAAgD,EAAE,oCAAoC,IAAI,wDAAwD,EAAE,MAAM,oDAAoD,CAAC;AAC7P,OAAO,KAAK,EAAE,wBAAwB,IAAI,4CAA4C,EAAE,gCAAgC,IAAI,oDAAoD,EAAE,MAAM,gDAAgD,CAAC;AAEzO,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,CAAC,4CAA4C,GAAG,IAAI,CAAC,CAAC;IAC/D,UAAU,CAAC,EAAE,CAAC,gDAAgD,GAAG,IAAI,CAAC,CAAC;IACvE,MAAM,CAAC,EAAE,CAAC,4CAA4C,GAAG,IAAI,CAAC,CAAC;IAC/D,aAAa,CAAC,EAAE,MAAM,GAAC,UAAU,GAAC,MAAM,CAAC;CAC1C;AAED,MAAM,WAAW,mCAAmC;IAClD,MAAM,CAAC,EAAE,CAAC,oDAAoD,CAAC,CAAC;IAChE,UAAU,CAAC,EAAE,CAAC,wDAAwD,CAAC,CAAC;IACxE,MAAM,CAAC,EAAE,CAAC,oDAAoD,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumWrappedPdfAnnotationP.js","sourceRoot":"","sources":["PdfiumWrappedPdfAnnotationP.ts"],"names":[],"mappings":";AAAA,+EAA+E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_annotation.proto
|
|
2
|
+
|
|
3
|
+
import type { PdfiumPdfTextAnnotationP as _ironpdfengineproto_PdfiumPdfTextAnnotationP, PdfiumPdfTextAnnotationP__Output as _ironpdfengineproto_PdfiumPdfTextAnnotationP__Output } from '../ironpdfengineproto/PdfiumPdfTextAnnotationP';
|
|
4
|
+
import type { PdfiumPdfFreeTextAnnotationP as _ironpdfengineproto_PdfiumPdfFreeTextAnnotationP, PdfiumPdfFreeTextAnnotationP__Output as _ironpdfengineproto_PdfiumPdfFreeTextAnnotationP__Output } from '../ironpdfengineproto/PdfiumPdfFreeTextAnnotationP';
|
|
5
|
+
import type { PdfiumPdfLinkAnnotationP as _ironpdfengineproto_PdfiumPdfLinkAnnotationP, PdfiumPdfLinkAnnotationP__Output as _ironpdfengineproto_PdfiumPdfLinkAnnotationP__Output } from '../ironpdfengineproto/PdfiumPdfLinkAnnotationP';
|
|
6
|
+
|
|
7
|
+
export interface PdfiumWrappedPdfAnnotationP {
|
|
8
|
+
'text'?: (_ironpdfengineproto_PdfiumPdfTextAnnotationP | null);
|
|
9
|
+
'freetext'?: (_ironpdfengineproto_PdfiumPdfFreeTextAnnotationP | null);
|
|
10
|
+
'link'?: (_ironpdfengineproto_PdfiumPdfLinkAnnotationP | null);
|
|
11
|
+
'annotations'?: "text"|"freetext"|"link";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface PdfiumWrappedPdfAnnotationP__Output {
|
|
15
|
+
'text'?: (_ironpdfengineproto_PdfiumPdfTextAnnotationP__Output);
|
|
16
|
+
'freetext'?: (_ironpdfengineproto_PdfiumPdfFreeTextAnnotationP__Output);
|
|
17
|
+
'link'?: (_ironpdfengineproto_PdfiumPdfLinkAnnotationP__Output);
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["handshake.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAiCtG,wBAAsB,kBAAkB,CACvC,MAAM,EAAE,oBAAoB,EAC5B,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"handshake.d.ts","sourceRoot":"","sources":["handshake.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAiCtG,wBAAsB,kBAAkB,CACvC,MAAM,EAAE,oBAAoB,EAC5B,UAAU,EAAE,MAAM,uCAWlB"}
|
|
@@ -38,7 +38,11 @@ function handshakeWithRetry(client, retryCount) {
|
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
let p = Promise.reject();
|
|
40
40
|
for (let i = 0; i < retryCount; i++) {
|
|
41
|
-
p = p.catch((_) => handshake(client)).catch((r) =>
|
|
41
|
+
p = p.catch((_) => handshake(client)).catch((r) => {
|
|
42
|
+
if (ironpdfglobalconfig_1.IronPdfGlobalConfig.getConfig().debugMode)
|
|
43
|
+
console.log(`Waiting for IronPdfEngine is ready. (Retry ${i + 1}/${retryCount})`);
|
|
44
|
+
return retryDelay(r);
|
|
45
|
+
});
|
|
42
46
|
}
|
|
43
47
|
return p;
|
|
44
48
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handshake.js","sourceRoot":"","sources":["handshake.ts"],"names":[],"mappings":";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UAAU,CAAC,CAAC,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;SACH;QACD,OAAO,CAAC,CAAC;IACV,CAAC;CAAA;AAbD,gDAaC"}
|
|
@@ -41,7 +41,11 @@ export async function handshakeWithRetry(
|
|
|
41
41
|
) {
|
|
42
42
|
let p: Promise<HandshakeResponseP__Output> = Promise.reject();
|
|
43
43
|
for (let i = 0; i < retryCount; i++) {
|
|
44
|
-
p = p.catch((_) => handshake(client)).catch((r) =>
|
|
44
|
+
p = p.catch((_) => handshake(client)).catch((r) => {
|
|
45
|
+
if (IronPdfGlobalConfig.getConfig().debugMode)
|
|
46
|
+
console.log(`Waiting for IronPdfEngine is ready. (Retry ${i+1}/${retryCount})`);
|
|
47
|
+
return retryDelay(r);
|
|
48
|
+
});
|
|
45
49
|
}
|
|
46
50
|
return p;
|
|
47
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["compress.ts"],"names":[],"mappings":"AAMA,wBAAsB,aAAa,CAClC,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,MAAM,EACpB,kBAAkB,UAAQ,GACxB,OAAO,CAAC,IAAI,CAAC,CAwBf"}
|
|
1
|
+
{"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["compress.ts"],"names":[],"mappings":"AAMA,wBAAsB,aAAa,CAClC,EAAE,EAAE,MAAM,EACV,YAAY,EAAE,MAAM,EACpB,kBAAkB,UAAQ,GACxB,OAAO,CAAC,IAAI,CAAC,CAwBf;AAED,wBAAsB,kBAAkB,CACvC,EAAE,EAAE,MAAM,GACR,OAAO,CAAC,IAAI,CAAC,CAsBf"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.compressImage = void 0;
|
|
12
|
+
exports.compressStructTree = exports.compressImage = void 0;
|
|
13
13
|
const access_1 = require("../../access");
|
|
14
14
|
const util_1 = require("../util");
|
|
15
15
|
function compressImage(id, imageQuality, scaleToVisibleSize = false) {
|
|
@@ -33,4 +33,23 @@ function compressImage(id, imageQuality, scaleToVisibleSize = false) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
exports.compressImage = compressImage;
|
|
36
|
+
function compressStructTree(id) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const client = yield access_1.Access.ensureConnection();
|
|
39
|
+
return new Promise((resolve, reject) => {
|
|
40
|
+
client.Pdfium_Compress_RemoveStructTree({
|
|
41
|
+
document: { documentId: id }
|
|
42
|
+
}, (err, value) => {
|
|
43
|
+
if (err) {
|
|
44
|
+
reject(`${err.name}/n${err.message}`);
|
|
45
|
+
}
|
|
46
|
+
else if (value) {
|
|
47
|
+
(0, util_1.handleEmptyResultP__Output)(value, reject);
|
|
48
|
+
resolve();
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
exports.compressStructTree = compressStructTree;
|
|
36
55
|
//# sourceMappingURL=compress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compress.js","sourceRoot":"","sources":["compress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"compress.js","sourceRoot":"","sources":["compress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAoC;AAEpC,kCAAmD;AAEnD,SAAsB,aAAa,CAClC,EAAU,EACV,YAAoB,EACpB,kBAAkB,GAAG,KAAK;;QAE1B,MAAM,MAAM,GAAyB,MAAM,eAAM,CAAC,gBAAgB,EAAE,CAAC;QACrE,OAAO,IAAI,OAAO,CACjB,CAAC,OAAmB,EAAE,MAAkC,EAAE,EAAE;YAC3D,MAAM,CAAC,8BAA8B,CACpC;gBACC,QAAQ,EAAE,EAAC,UAAU,EAAE,EAAE,EAAC;gBAC1B,kBAAkB,EAAE,kBAAkB;gBACtC,OAAO,EAAE,YAAY;aACrB,EACD,CACC,GAAwB,EACxB,KAAuC,EACtC,EAAE;gBACH,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;iBACtC;qBAAM,IAAI,KAAK,EAAE;oBACjB,IAAA,iCAA0B,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;oBAC1C,OAAO,EAAE,CAAC;iBACV;YACF,CAAC,CACD,CAAC;QACH,CAAC,CACD,CAAC;IACH,CAAC;CAAA;AA5BD,sCA4BC;AAED,SAAsB,kBAAkB,CACvC,EAAU;;QAEV,MAAM,MAAM,GAAyB,MAAM,eAAM,CAAC,gBAAgB,EAAE,CAAC;QACrE,OAAO,IAAI,OAAO,CACjB,CAAC,OAAmB,EAAE,MAAkC,EAAE,EAAE;YAC3D,MAAM,CAAC,gCAAgC,CACtC;gBACC,QAAQ,EAAE,EAAC,UAAU,EAAE,EAAE,EAAC;aAC1B,EACD,CACC,GAAwB,EACxB,KAAuC,EACtC,EAAE;gBACH,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;iBACtC;qBAAM,IAAI,KAAK,EAAE;oBACjB,IAAA,iCAA0B,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;oBAC1C,OAAO,EAAE,CAAC;iBACV;YACF,CAAC,CACD,CAAC;QACH,CAAC,CACD,CAAC;IACH,CAAC;CAAA;AAxBD,gDAwBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import {ServiceError} from "@grpc/grpc-js";
|
|
2
|
+
import {IronPdfServiceClient} from "../../generated_proto/ironpdfengineproto/IronPdfService";
|
|
3
|
+
import {Access} from "../../access";
|
|
4
|
+
import {EmptyResultP__Output} from "../../generated_proto/ironpdfengineproto/EmptyResultP";
|
|
5
|
+
import {handleEmptyResultP__Output} from "../util";
|
|
6
6
|
|
|
7
7
|
export async function compressImage(
|
|
8
8
|
id: string,
|
|
@@ -14,7 +14,7 @@ export async function compressImage(
|
|
|
14
14
|
(resolve: () => void, reject: (errorMsg: string) => void) => {
|
|
15
15
|
client.Pdfium_Compress_CompressImages(
|
|
16
16
|
{
|
|
17
|
-
document: {
|
|
17
|
+
document: {documentId: id},
|
|
18
18
|
scaleToVisibleSize: scaleToVisibleSize,
|
|
19
19
|
quality: imageQuality,
|
|
20
20
|
},
|
|
@@ -33,3 +33,30 @@ export async function compressImage(
|
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
export async function compressStructTree(
|
|
38
|
+
id: string
|
|
39
|
+
): Promise<void> {
|
|
40
|
+
const client: IronPdfServiceClient = await Access.ensureConnection();
|
|
41
|
+
return new Promise(
|
|
42
|
+
(resolve: () => void, reject: (errorMsg: string) => void) => {
|
|
43
|
+
client.Pdfium_Compress_RemoveStructTree(
|
|
44
|
+
{
|
|
45
|
+
document: {documentId: id}
|
|
46
|
+
},
|
|
47
|
+
(
|
|
48
|
+
err: ServiceError | null,
|
|
49
|
+
value: EmptyResultP__Output | undefined
|
|
50
|
+
) => {
|
|
51
|
+
if (err) {
|
|
52
|
+
reject(`${err.name}/n${err.message}`);
|
|
53
|
+
} else if (value) {
|
|
54
|
+
handleEmptyResultP__Output(value, reject);
|
|
55
|
+
resolve();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { SaveOptions } from "../../../public/types";
|
|
2
|
+
import { ChangeTrackingModes, SaveOptions } from "../../../public/types";
|
|
3
3
|
export declare function openPdfFileBuffer(buffer: Buffer, option?: {
|
|
4
4
|
userPassword?: string;
|
|
5
5
|
ownerPassword?: string;
|
|
6
|
+
trackChanges?: ChangeTrackingModes;
|
|
6
7
|
}): Promise<string>;
|
|
7
8
|
export declare function getBinaryData(pdfDocumentId: string, saveOptions?: SaveOptions): Promise<Buffer>;
|
|
8
9
|
export declare function disposePdf(pdfDocumentId: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["io.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["io.ts"],"names":[],"mappings":";AASA,OAAO,EAAC,mBAAmB,EAAE,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAMvE,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAE;IAAC,YAAY,CAAC,EAAE,mBAAmB,CAAA;CAAE,GAC7F,OAAO,CAAC,MAAM,CAAC,CAqCjB;AAED,wBAAsB,aAAa,CAClC,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,WAAW,GACvB,OAAO,CAAC,MAAM,CAAC,CA6EjB;AAED,wBAAsB,UAAU,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBrE"}
|
|
@@ -12,10 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.disposePdf = exports.getBinaryData = exports.openPdfFileBuffer = void 0;
|
|
13
13
|
const access_1 = require("../../access");
|
|
14
14
|
const util_1 = require("../util");
|
|
15
|
+
const types_1 = require("../../../public/types");
|
|
15
16
|
function openPdfFileBuffer(buffer, option) {
|
|
16
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
18
|
const client = yield access_1.Access.ensureConnection();
|
|
18
19
|
return new Promise((resolve, reject) => {
|
|
20
|
+
var _a;
|
|
19
21
|
const stream = client.Pdfium_FromBytes((err, value) => {
|
|
20
22
|
if (err) {
|
|
21
23
|
reject(`${err.name}/n${err.message}`);
|
|
@@ -28,6 +30,7 @@ function openPdfFileBuffer(buffer, option) {
|
|
|
28
30
|
info: {
|
|
29
31
|
ownerPassword: option === null || option === void 0 ? void 0 : option.ownerPassword,
|
|
30
32
|
userPassword: option === null || option === void 0 ? void 0 : option.userPassword,
|
|
33
|
+
trackChanges: (_a = option === null || option === void 0 ? void 0 : option.trackChanges) !== null && _a !== void 0 ? _a : types_1.ChangeTrackingModes.AutoChangeTracking
|
|
31
34
|
},
|
|
32
35
|
});
|
|
33
36
|
(0, util_1.chunkBuffer)(buffer).forEach((chunk) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.js","sourceRoot":"","sources":["io.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"io.js","sourceRoot":"","sources":["io.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,yCAAoC;AAKpC,kCAAsE;AACtE,iDAAuE;AAMvE,SAAsB,iBAAiB,CACtC,MAAc,EACd,MAA+F;;QAE/F,MAAM,MAAM,GAAyB,MAAM,eAAM,CAAC,gBAAgB,EAAE,CAAC;QACrE,OAAO,IAAI,OAAO,CACjB,CAAC,OAA4B,EAAE,MAAkC,EAAE,EAAE;;YACpE,MAAM,MAAM,GACX,MAAM,CAAC,gBAAgB,CACtB,CACC,GAAwB,EACxB,KAA6C,EAC5C,EAAE;gBACH,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;iBACtC;qBAAM,IAAI,KAAK,EAAE;oBACjB,IAAA,uCAAgC,EAC/B,KAAK,EACL,OAAO,EACP,MAAM,CACN,CAAC;iBACF;YACF,CAAC,CACD,CAA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,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;iBACtC;qBAAM,IAAI,KAAK,EAAE;oBACjB,eAAe;oBACf,OAAO,EAAE,CAAC;iBACV;YACF,CAAC,CACD,CAAC;QACH,CAAC,CACD,CAAC;IACH,CAAC;CAAA;AAlBD,gCAkBC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as grpc from "@grpc/grpc-js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
2
|
+
import {ServiceError} from "@grpc/grpc-js";
|
|
3
|
+
import {IronPdfServiceClient} from "../../generated_proto/ironpdfengineproto/IronPdfService";
|
|
4
|
+
import {Access} from "../../access";
|
|
5
|
+
import {
|
|
6
|
+
PdfiumPdfDocumentConstructorStreamP
|
|
7
|
+
} from "../../generated_proto/ironpdfengineproto/PdfiumPdfDocumentConstructorStreamP";
|
|
8
|
+
import {PdfDocumentResultP__Output} from "../../generated_proto/ironpdfengineproto/PdfDocumentResultP";
|
|
9
|
+
import {chunkBuffer, handlePdfDocumentResultP__Output} from "../util";
|
|
10
|
+
import {ChangeTrackingModes, SaveOptions} from "../../../public/types";
|
|
11
|
+
import {BytesResultStreamP__Output} from "../../generated_proto/ironpdfengineproto/BytesResultStreamP";
|
|
12
|
+
import {
|
|
13
|
+
PdfiumGetBinaryDataRequestStreamP
|
|
14
|
+
} from "../../generated_proto/ironpdfengineproto/PdfiumGetBinaryDataRequestStreamP";
|
|
14
15
|
|
|
15
16
|
export async function openPdfFileBuffer(
|
|
16
17
|
buffer: Buffer,
|
|
17
|
-
option?: { userPassword?: string; ownerPassword?: string }
|
|
18
|
+
option?: { userPassword?: string; ownerPassword?: string , trackChanges?: ChangeTrackingModes }
|
|
18
19
|
): Promise<string> {
|
|
19
20
|
const client: IronPdfServiceClient = await Access.ensureConnection();
|
|
20
21
|
return new Promise(
|
|
@@ -41,6 +42,7 @@ export async function openPdfFileBuffer(
|
|
|
41
42
|
info: {
|
|
42
43
|
ownerPassword: option?.ownerPassword,
|
|
43
44
|
userPassword: option?.userPassword,
|
|
45
|
+
trackChanges: option?.trackChanges ?? ChangeTrackingModes.AutoChangeTracking
|
|
44
46
|
},
|
|
45
47
|
});
|
|
46
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Buffer } from "buffer";
|
|
3
|
-
import { BarcodeStampOptions, BarcodeType, ChromePdfRenderOptions, DigitalSignature, HtmlAffix, HtmlFilePath, HtmlStampOptions, HtmlString, HttpLoginCredentials, ImageBuffer, ImageFilePath, ImageStampOptions, ImageToPdfOptions, ImageType, PageInfo, PageRotation, PdfInput, PdfPageSelection, PdfPaperSize, PdfPassword, PdfPermission, SaveOptions, TextAffix, TextStampOptions } from "./types";
|
|
3
|
+
import { BarcodeStampOptions, BarcodeType, ChangeTrackingModes, ChromePdfRenderOptions, DigitalSignature, HtmlAffix, HtmlFilePath, HtmlStampOptions, HtmlString, HttpLoginCredentials, ImageBuffer, ImageFilePath, ImageStampOptions, ImageToPdfOptions, ImageType, PageInfo, PageRotation, PdfInput, PdfPageSelection, PdfPaperSize, PdfPassword, PdfPermission, SaveOptions, TextAffix, TextStampOptions } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* Represents a PDF document. Allows: loading, editing, manipulating, merging, signing printing and saving PDFs.
|
|
6
6
|
*
|
|
@@ -26,8 +26,9 @@ export declare class PdfDocument {
|
|
|
26
26
|
*
|
|
27
27
|
* @param pdfInput see {@link PdfInput} (required)
|
|
28
28
|
* @param password a password to open the PDF required if PDF file was protected (pdfInput is {@link PdfFilePath} or {@link Buffer})
|
|
29
|
+
* @param trackChanges Optionally track changes to the document (for use with incremental saves)
|
|
29
30
|
*/
|
|
30
|
-
constructor(pdfInput?: PdfInput, password?: PdfPassword);
|
|
31
|
+
constructor(pdfInput?: PdfInput, password?: PdfPassword, trackChanges?: ChangeTrackingModes);
|
|
31
32
|
/**
|
|
32
33
|
* Dispose this PdfDocument object (clean up the resource)
|
|
33
34
|
* This is necessary to free the memory used by PdfDocument. See {@link cleanUp}
|
|
@@ -64,12 +65,18 @@ export declare class PdfDocument {
|
|
|
64
65
|
* @default `index.html`
|
|
65
66
|
*/
|
|
66
67
|
mainHtmlFile?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Optionally track changes to the document (for use with incremental saves)
|
|
70
|
+
* @default {@link ChangeTrackingModes.AutoChangeTracking}
|
|
71
|
+
*/
|
|
72
|
+
trackChanges?: ChangeTrackingModes;
|
|
67
73
|
}): Promise<PdfDocument>;
|
|
68
74
|
/**
|
|
69
75
|
* Open a PdfDocument from .pdf file
|
|
70
76
|
* @param pdfFilePath A path to .pdf file
|
|
77
|
+
* @param Optionally track changes to the document (for use with incremental saves)
|
|
71
78
|
*/
|
|
72
|
-
static fromFile(pdfFilePath: string): Promise<PdfDocument>;
|
|
79
|
+
static fromFile(pdfFilePath: string, trackChanges?: ChangeTrackingModes): Promise<PdfDocument>;
|
|
73
80
|
/**
|
|
74
81
|
* Create a PdfDocument from an Url
|
|
75
82
|
* @param url A website Url
|
|
@@ -156,6 +163,12 @@ export declare class PdfDocument {
|
|
|
156
163
|
* @param scaleToVisibleSize Scale down the image resolution according to its visible size in the PDF document
|
|
157
164
|
*/
|
|
158
165
|
compressSize(imageQuality: number, scaleToVisibleSize?: boolean): Promise<void>;
|
|
166
|
+
/**
|
|
167
|
+
* Remove document struct tree information which describes the logical layout of the document.
|
|
168
|
+
* Removing the "structure tree" can significantly reduce the disk space used by the document.
|
|
169
|
+
* Removing the "structure tree" of a complicated document can negatively impact text selection.
|
|
170
|
+
*/
|
|
171
|
+
compressStructTree(): Promise<void>;
|
|
159
172
|
/**
|
|
160
173
|
* Gets information of all pages in the PdfDocument
|
|
161
174
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdfDocument.d.ts","sourceRoot":"","sources":["pdfDocument.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"pdfDocument.d.ts","sourceRoot":"","sources":["pdfDocument.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACN,mBAAmB,EACnB,WAAW,EAAE,mBAAmB,EAChC,sBAAsB,EACtB,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,MAAM,SAAS,CAAC;AAwEjB;;;;GAIG;AACH,qBAAa,WAAW;IACvB;;;OAGG;IACH,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAkB;IACrD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAC,CAAc;IAElC;;;;;;;OAOG;gBACS,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,EAAE,mBAAmB;IAiD3F;;;;OAIG;IACU,KAAK;IAIlB;;OAEG;YACW,KAAK;IAanB;;;;OAIG;WACiB,IAAI,CACvB,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE;QACT;;;WAGG;QACH,QAAQ,CAAC,EAAE,WAAW,CAAC;QACvB;;;WAGG;QACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;QACvC;;;WAGG;QACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;QAC5C;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