@ironsoftware/ironpdf 2024.5.1 → 2024.6.4
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/index.d.ts +1 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/basic.proto +7 -0
- package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_text.proto +7 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts +2 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
- package/src/internal/generated_proto/iron_pdf_service.ts +2 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactRegionsRequestP.d.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactRegionsRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactRegionsRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactRegionsRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactRegionsRequestP.ts +18 -0
- package/src/internal/generated_proto/ironpdfengineproto/Rectangle.d.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/Rectangle.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/Rectangle.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/Rectangle.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/Rectangle.ts +16 -0
- package/src/internal/grpc_layer/pdfium/pdfa.d.ts +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.js +2 -1
- package/src/internal/grpc_layer/pdfium/pdfa.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.ts +3 -1
- package/src/public/naturalLanguages.d.ts +1042 -0
- package/src/public/naturalLanguages.d.ts.map +1 -0
- package/src/public/naturalLanguages.js +1114 -0
- package/src/public/naturalLanguages.js.map +1 -0
- package/src/public/naturalLanguages.ts +1144 -0
- package/src/public/pdfDocument.d.ts +2 -1
- package/src/public/pdfDocument.d.ts.map +1 -1
- package/src/public/pdfDocument.js +4 -4
- package/src/public/pdfDocument.js.map +1 -1
- package/src/public/pdfDocument.ts +5 -4
- package/src/public/types.d.ts +1 -0
- package/src/public/types.d.ts.map +1 -1
- package/src/public/types.js +1 -0
- package/src/public/types.js.map +1 -1
- package/src/public/types.ts +2 -0
|
@@ -120,6 +120,7 @@ import type { PdfiumPdfDocumentInsertRequestP as _ironpdfengineproto_PdfiumPdfDo
|
|
|
120
120
|
import type { PdfiumPdfDocumentMergeRequestP as _ironpdfengineproto_PdfiumPdfDocumentMergeRequestP, PdfiumPdfDocumentMergeRequestP__Output as _ironpdfengineproto_PdfiumPdfDocumentMergeRequestP__Output } from '../ironpdfengineproto/PdfiumPdfDocumentMergeRequestP';
|
|
121
121
|
import type { PdfiumPdfToImagesRequestP as _ironpdfengineproto_PdfiumPdfToImagesRequestP, PdfiumPdfToImagesRequestP__Output as _ironpdfengineproto_PdfiumPdfToImagesRequestP__Output } from '../ironpdfengineproto/PdfiumPdfToImagesRequestP';
|
|
122
122
|
import type { PdfiumPdfToMultiPageTiffImageRequestP as _ironpdfengineproto_PdfiumPdfToMultiPageTiffImageRequestP, PdfiumPdfToMultiPageTiffImageRequestP__Output as _ironpdfengineproto_PdfiumPdfToMultiPageTiffImageRequestP__Output } from '../ironpdfengineproto/PdfiumPdfToMultiPageTiffImageRequestP';
|
|
123
|
+
import type { PdfiumRedactRegionsRequestP as _ironpdfengineproto_PdfiumRedactRegionsRequestP, PdfiumRedactRegionsRequestP__Output as _ironpdfengineproto_PdfiumRedactRegionsRequestP__Output } from '../ironpdfengineproto/PdfiumRedactRegionsRequestP';
|
|
123
124
|
import type { PdfiumRedactTextRequestP as _ironpdfengineproto_PdfiumRedactTextRequestP, PdfiumRedactTextRequestP__Output as _ironpdfengineproto_PdfiumRedactTextRequestP__Output } from '../ironpdfengineproto/PdfiumRedactTextRequestP';
|
|
124
125
|
import type { PdfiumRemoveAnnotationRequestP as _ironpdfengineproto_PdfiumRemoveAnnotationRequestP, PdfiumRemoveAnnotationRequestP__Output as _ironpdfengineproto_PdfiumRemoveAnnotationRequestP__Output } from '../ironpdfengineproto/PdfiumRemoveAnnotationRequestP';
|
|
125
126
|
import type { PdfiumRemoveBookmarksRequestP as _ironpdfengineproto_PdfiumRemoveBookmarksRequestP, PdfiumRemoveBookmarksRequestP__Output as _ironpdfengineproto_PdfiumRemoveBookmarksRequestP__Output } from '../ironpdfengineproto/PdfiumRemoveBookmarksRequestP';
|
|
@@ -1190,6 +1191,15 @@ export interface IronPdfServiceClient extends grpc.Client {
|
|
|
1190
1191
|
pdfiumTextExtractAllText(argument: _ironpdfengineproto_PdfiumExtractAllTextRequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_StringResultP__Output>): grpc.ClientUnaryCall;
|
|
1191
1192
|
pdfiumTextExtractAllText(argument: _ironpdfengineproto_PdfiumExtractAllTextRequestP, callback: grpc.requestCallback<_ironpdfengineproto_StringResultP__Output>): grpc.ClientUnaryCall;
|
|
1192
1193
|
|
|
1194
|
+
Pdfium_Text_RedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1195
|
+
Pdfium_Text_RedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, metadata: grpc.Metadata, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1196
|
+
Pdfium_Text_RedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1197
|
+
Pdfium_Text_RedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1198
|
+
pdfiumTextRedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1199
|
+
pdfiumTextRedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, metadata: grpc.Metadata, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1200
|
+
pdfiumTextRedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1201
|
+
pdfiumTextRedactRegions(argument: _ironpdfengineproto_PdfiumRedactRegionsRequestP, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1202
|
+
|
|
1193
1203
|
Pdfium_Text_RedactText(argument: _ironpdfengineproto_PdfiumRedactTextRequestP, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1194
1204
|
Pdfium_Text_RedactText(argument: _ironpdfengineproto_PdfiumRedactTextRequestP, metadata: grpc.Metadata, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
1195
1205
|
Pdfium_Text_RedactText(argument: _ironpdfengineproto_PdfiumRedactTextRequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
@@ -1479,6 +1489,8 @@ export interface IronPdfServiceHandlers extends grpc.UntypedServiceImplementatio
|
|
|
1479
1489
|
|
|
1480
1490
|
Pdfium_Text_ExtractAllText: grpc.handleUnaryCall<_ironpdfengineproto_PdfiumExtractAllTextRequestP__Output, _ironpdfengineproto_StringResultP>;
|
|
1481
1491
|
|
|
1492
|
+
Pdfium_Text_RedactRegions: grpc.handleUnaryCall<_ironpdfengineproto_PdfiumRedactRegionsRequestP__Output, _ironpdfengineproto_EmptyResultP>;
|
|
1493
|
+
|
|
1482
1494
|
Pdfium_Text_RedactText: grpc.handleUnaryCall<_ironpdfengineproto_PdfiumRedactTextRequestP__Output, _ironpdfengineproto_EmptyResultP>;
|
|
1483
1495
|
|
|
1484
1496
|
Pdfium_Text_ReplaceText: grpc.handleUnaryCall<_ironpdfengineproto_PdfiumReplaceTextRequestP__Output, _ironpdfengineproto_EmptyResultP>;
|
|
@@ -1610,6 +1622,7 @@ export interface IronPdfServiceDefinition extends grpc.ServiceDefinition {
|
|
|
1610
1622
|
Pdfium_Stamp_StampStampFooterWatermark: MethodDefinition<_ironpdfengineproto_PdfiumStampFooterWatermarkRequestStreamP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumStampFooterWatermarkRequestStreamP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1611
1623
|
Pdfium_Text_DrawText: MethodDefinition<_ironpdfengineproto_PdfiumDrawTextRequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumDrawTextRequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1612
1624
|
Pdfium_Text_ExtractAllText: MethodDefinition<_ironpdfengineproto_PdfiumExtractAllTextRequestP, _ironpdfengineproto_StringResultP, _ironpdfengineproto_PdfiumExtractAllTextRequestP__Output, _ironpdfengineproto_StringResultP__Output>
|
|
1625
|
+
Pdfium_Text_RedactRegions: MethodDefinition<_ironpdfengineproto_PdfiumRedactRegionsRequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumRedactRegionsRequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1613
1626
|
Pdfium_Text_RedactText: MethodDefinition<_ironpdfengineproto_PdfiumRedactTextRequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumRedactTextRequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1614
1627
|
Pdfium_Text_ReplaceText: MethodDefinition<_ironpdfengineproto_PdfiumReplaceTextRequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumReplaceTextRequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1615
1628
|
System_License_IsLicensed: MethodDefinition<_ironpdfengineproto_SystemIsLicensedRequestP, _ironpdfengineproto_BooleanResultP, _ironpdfengineproto_SystemIsLicensedRequestP__Output, _ironpdfengineproto_BooleanResultP__Output>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
2
|
+
import type { Rectangle as _ironpdfengineproto_Rectangle, Rectangle__Output as _ironpdfengineproto_Rectangle__Output } from '../ironpdfengineproto/Rectangle';
|
|
3
|
+
export interface PdfiumRedactRegionsRequestP {
|
|
4
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
5
|
+
'pageIndex'?: (number);
|
|
6
|
+
'regions'?: (_ironpdfengineproto_Rectangle)[];
|
|
7
|
+
'isDrawBoxes'?: (boolean);
|
|
8
|
+
}
|
|
9
|
+
export interface PdfiumRedactRegionsRequestP__Output {
|
|
10
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
11
|
+
'pageIndex'?: (number);
|
|
12
|
+
'regions'?: (_ironpdfengineproto_Rectangle__Output)[];
|
|
13
|
+
'isDrawBoxes'?: (boolean);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PdfiumRedactRegionsRequestP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumRedactRegionsRequestP.d.ts","sourceRoot":"","sources":["PdfiumRedactRegionsRequestP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gCAAgC,EAAE,oBAAoB,IAAI,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAC7K,OAAO,KAAK,EAAE,SAAS,IAAI,6BAA6B,EAAE,iBAAiB,IAAI,qCAAqC,EAAE,MAAM,iCAAiC,CAAC;AAE9J,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;IACvD,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACvB,SAAS,CAAC,EAAE,CAAC,6BAA6B,CAAC,EAAE,CAAC;IAC9C,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,mCAAmC;IAClD,UAAU,CAAC,EAAE,CAAC,wCAAwC,CAAC,CAAC;IACxD,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACvB,SAAS,CAAC,EAAE,CAAC,qCAAqC,CAAC,EAAE,CAAC;IACtD,aAAa,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumRedactRegionsRequestP.js","sourceRoot":"","sources":["PdfiumRedactRegionsRequestP.ts"],"names":[],"mappings":";AAAA,yEAAyE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_text.proto
|
|
2
|
+
|
|
3
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
4
|
+
import type { Rectangle as _ironpdfengineproto_Rectangle, Rectangle__Output as _ironpdfengineproto_Rectangle__Output } from '../ironpdfengineproto/Rectangle';
|
|
5
|
+
|
|
6
|
+
export interface PdfiumRedactRegionsRequestP {
|
|
7
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
8
|
+
'pageIndex'?: (number);
|
|
9
|
+
'regions'?: (_ironpdfengineproto_Rectangle)[];
|
|
10
|
+
'isDrawBoxes'?: (boolean);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface PdfiumRedactRegionsRequestP__Output {
|
|
14
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
15
|
+
'pageIndex'?: (number);
|
|
16
|
+
'regions'?: (_ironpdfengineproto_Rectangle__Output)[];
|
|
17
|
+
'isDrawBoxes'?: (boolean);
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Rectangle {
|
|
2
|
+
'x'?: (number | string);
|
|
3
|
+
'y'?: (number | string);
|
|
4
|
+
'width'?: (number | string);
|
|
5
|
+
'height'?: (number | string);
|
|
6
|
+
}
|
|
7
|
+
export interface Rectangle__Output {
|
|
8
|
+
'x'?: (number);
|
|
9
|
+
'y'?: (number);
|
|
10
|
+
'width'?: (number);
|
|
11
|
+
'height'?: (number);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["Rectangle.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACf,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rectangle.js","sourceRoot":"","sources":["Rectangle.ts"],"names":[],"mappings":";AAAA,mEAAmE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/basic.proto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface Rectangle {
|
|
5
|
+
'x'?: (number | string);
|
|
6
|
+
'y'?: (number | string);
|
|
7
|
+
'width'?: (number | string);
|
|
8
|
+
'height'?: (number | string);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface Rectangle__Output {
|
|
12
|
+
'x'?: (number);
|
|
13
|
+
'y'?: (number);
|
|
14
|
+
'width'?: (number);
|
|
15
|
+
'height'?: (number);
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdfa.d.ts","sourceRoot":"","sources":["pdfa.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdfa.d.ts","sourceRoot":"","sources":["pdfa.ts"],"names":[],"mappings":"AAcA,wBAAsB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiClF;AAGD,wBAAsB,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBjF"}
|
|
@@ -46,12 +46,13 @@ function toPdfA(id, customICCFilePath) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
exports.toPdfA = toPdfA;
|
|
49
|
-
function toPdfUA(id) {
|
|
49
|
+
function toPdfUA(id, naturalLanguages) {
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const client = yield access_1.Access.ensureConnection();
|
|
52
52
|
return new Promise((resolve, reject) => {
|
|
53
53
|
client.Pdfium_ConvertToPdfUA({
|
|
54
54
|
document: { documentId: id },
|
|
55
|
+
lang: naturalLanguages,
|
|
55
56
|
}, (err, value) => {
|
|
56
57
|
if (err) {
|
|
57
58
|
reject(`${err.name}/n${err.message}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdfa.js","sourceRoot":"","sources":["pdfa.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAAoC;AAEpC,kCAKiB;AACjB,4CAAoB;
|
|
1
|
+
{"version":3,"file":"pdfa.js","sourceRoot":"","sources":["pdfa.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAAoC;AAEpC,kCAKiB;AACjB,4CAAoB;AAIpB,SAAsB,MAAM,CAAC,EAAU,EAAE,iBAA0B;;QAClE,MAAM,MAAM,GAAyB,MAAM,eAAM,CAAC,gBAAgB,EAAE,CAAC;QACrE,OAAO,IAAI,OAAO,CACjB,CAAC,OAAmB,EAAE,MAAkC,EAAE,EAAE;YAC3D,MAAM,MAAM,GAAG,MAAM,CAAC,oBAAoB,CACzC,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,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,EAAE;wBACrB,IAAA,4BAAqB,EAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;qBAC/C;yBAAI;wBACJ,OAAO,EAAE,CAAA;qBACT;iBACD;YACF,CAAC,CACD,CAAC;YAEF,MAAM,CAAC,KAAK,CAAC,EAAC,IAAI,EAAE,EAAC,QAAQ,EAAE,EAAC,UAAU,EAAE,EAAE,EAAC,EAAC,EAAC,CAAC,CAAA;YAElD,IAAI,iBAAiB,EAAE;gBACtB,IAAA,kBAAW,EAAC,YAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;oBACjE,MAAM,CAAC,KAAK,CAAC;wBACZ,aAAa,EAAE,KAAK;qBACpB,CAAC,CAAC;gBACJ,CAAC,CAAC,CAAC;aACH;YACD,MAAM,CAAC,GAAG,EAAE,CAAA;QACb,CAAC,CACD,CAAC;IACH,CAAC;CAAA;AAjCD,wBAiCC;AAGD,SAAsB,OAAO,CAAC,EAAU,EAAE,gBAAwB;;QACjE,MAAM,MAAM,GAAyB,MAAM,eAAM,CAAC,gBAAgB,EAAE,CAAC;QACrE,OAAO,IAAI,OAAO,CACjB,CAAC,OAAmB,EAAE,MAAkC,EAAE,EAAE;YAC3D,MAAM,CAAC,qBAAqB,CAC3B;gBACC,QAAQ,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;gBAC5B,IAAI,EAAE,gBAAgB;aACtB,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;AAvBD,0BAuBC"}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from "../util";
|
|
11
11
|
import fs from "fs";
|
|
12
12
|
import {PdfDocumentResultP__Output} from "../../generated_proto/ironpdfengineproto/PdfDocumentResultP";
|
|
13
|
+
import { NaturalLanguages } from "../../../public/naturalLanguages";
|
|
13
14
|
|
|
14
15
|
export async function toPdfA(id: string, customICCFilePath?: string): Promise<void> {
|
|
15
16
|
const client: IronPdfServiceClient = await Access.ensureConnection();
|
|
@@ -47,13 +48,14 @@ export async function toPdfA(id: string, customICCFilePath?: string): Promise<vo
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
|
|
50
|
-
export async function toPdfUA(id: string): Promise<void> {
|
|
51
|
+
export async function toPdfUA(id: string, naturalLanguages: number): Promise<void> {
|
|
51
52
|
const client: IronPdfServiceClient = await Access.ensureConnection();
|
|
52
53
|
return new Promise(
|
|
53
54
|
(resolve: () => void, reject: (errorMsg: string) => void) => {
|
|
54
55
|
client.Pdfium_ConvertToPdfUA(
|
|
55
56
|
{
|
|
56
57
|
document: { documentId: id },
|
|
58
|
+
lang: naturalLanguages,
|
|
57
59
|
},
|
|
58
60
|
(
|
|
59
61
|
err: ServiceError | null,
|