@ironsoftware/ironpdf 2024.12.9 → 2025.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 +6 -3
- package/src/internal/IronPdfEngine.ProtoFiles/chrome_render.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_annotation.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_pdf_document.proto +6 -0
- package/src/internal/access.d.ts +2 -3
- package/src/internal/access.d.ts.map +1 -1
- package/src/internal/access.ts +0 -2
- package/src/internal/generated_proto/iron_pdf_service.d.ts +1 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
- package/src/internal/generated_proto/iron_pdf_service.ts +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.ts +3 -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/PdfiumAddLinkAnnotationRequestP.d.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.ts +15 -0
- package/src/internal/grpc_layer/chrome/converter.d.ts +23 -23
- package/src/internal/grpc_layer/chrome/converter.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.js +93 -102
- package/src/internal/grpc_layer/chrome/converter.js.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.ts +140 -145
- package/src/internal/grpc_layer/chrome/render.d.ts +5 -5
- package/src/internal/grpc_layer/chrome/render.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/render.js.map +1 -1
- package/src/internal/grpc_layer/chrome/render.ts +7 -7
- package/src/internal/grpc_layer/chrome/stamp.d.ts +16 -16
- package/src/internal/grpc_layer/chrome/stamp.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/stamp.js.map +1 -1
- package/src/internal/grpc_layer/chrome/stamp.ts +16 -16
- package/src/internal/grpc_layer/handshake.js +1 -1
- package/src/internal/grpc_layer/handshake.js.map +1 -1
- package/src/internal/grpc_layer/handshake.ts +1 -1
- package/src/internal/grpc_layer/pdfium/converter.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/converter.js +3 -4
- package/src/internal/grpc_layer/pdfium/converter.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/converter.ts +3 -4
- package/src/internal/grpc_layer/pdfium/headerFooter.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/headerFooter.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/headerFooter.ts +0 -2
- package/src/internal/grpc_layer/pdfium/image.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/image.js +8 -5
- package/src/internal/grpc_layer/pdfium/image.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/image.ts +9 -8
- package/src/internal/grpc_layer/pdfium/io.d.ts +5 -5
- package/src/internal/grpc_layer/pdfium/io.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/io.js +6 -5
- package/src/internal/grpc_layer/pdfium/io.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/io.ts +5 -5
- package/src/internal/grpc_layer/pdfium/page.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/page.js +27 -21
- package/src/internal/grpc_layer/pdfium/page.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/page.ts +32 -27
- package/src/internal/grpc_layer/pdfium/pdfa.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.ts +0 -2
- package/src/internal/grpc_layer/pdfium/security.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/security.js +9 -6
- package/src/internal/grpc_layer/pdfium/security.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/security.ts +6 -7
- package/src/internal/grpc_layer/pdfium/signing.js +15 -15
- package/src/internal/grpc_layer/pdfium/signing.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/signing.ts +4 -4
- package/src/internal/grpc_layer/pdfium/text.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/text.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/text.ts +0 -2
- package/src/internal/grpc_layer/util.d.ts +6 -6
- package/src/internal/grpc_layer/util.d.ts.map +1 -1
- package/src/internal/grpc_layer/util.js +25 -14
- package/src/internal/grpc_layer/util.js.map +1 -1
- package/src/internal/grpc_layer/util.ts +35 -17
- package/src/internal/zod/ironpdfglobalconfigSchema.d.ts.map +1 -1
- package/src/internal/zod/ironpdfglobalconfigSchema.ts +1 -1
- package/src/internal/zod/stampSchema.d.ts +6 -6
- package/src/public/affix.d.ts +11 -11
- package/src/public/affix.d.ts.map +1 -1
- package/src/public/affix.ts +12 -12
- package/src/public/ironpdfglobalconfig.d.ts +9 -9
- package/src/public/ironpdfglobalconfig.d.ts.map +1 -1
- package/src/public/ironpdfglobalconfig.ts +9 -9
- package/src/public/pdfDocument.d.ts +52 -52
- package/src/public/pdfDocument.d.ts.map +1 -1
- package/src/public/pdfDocument.js +21 -17
- package/src/public/pdfDocument.js.map +1 -1
- package/src/public/pdfDocument.ts +134 -138
- package/src/public/pdfGenerator.d.ts +1 -1
- package/src/public/pdfGenerator.d.ts.map +1 -1
- package/src/public/pdfGenerator.ts +1 -1
- package/src/public/render.d.ts +33 -33
- package/src/public/render.d.ts.map +1 -1
- package/src/public/render.ts +37 -37
- package/src/public/security.d.ts +10 -10
- package/src/public/security.d.ts.map +1 -1
- package/src/public/security.ts +10 -10
- package/src/public/signature.d.ts +12 -12
- package/src/public/signature.d.ts.map +1 -1
- package/src/public/signature.ts +12 -12
- package/src/public/stamp.d.ts +26 -26
- package/src/public/stamp.d.ts.map +1 -1
- package/src/public/stamp.ts +27 -27
- package/src/public/types.d.ts +15 -15
- package/src/public/types.d.ts.map +1 -1
- package/src/public/types.ts +14 -14
|
@@ -42,6 +42,7 @@ import type { PdfiumAddTextAnnotationRequestP as _ironpdfengineproto_PdfiumAddTe
|
|
|
42
42
|
import type { PdfiumAddTextHeaderFooterRequestP as _ironpdfengineproto_PdfiumAddTextHeaderFooterRequestP, PdfiumAddTextHeaderFooterRequestP__Output as _ironpdfengineproto_PdfiumAddTextHeaderFooterRequestP__Output } from '../ironpdfengineproto/PdfiumAddTextHeaderFooterRequestP';
|
|
43
43
|
import type { PdfiumCompressImagesRequestP as _ironpdfengineproto_PdfiumCompressImagesRequestP, PdfiumCompressImagesRequestP__Output as _ironpdfengineproto_PdfiumCompressImagesRequestP__Output } from '../ironpdfengineproto/PdfiumCompressImagesRequestP';
|
|
44
44
|
import type { PdfiumConvertToPdfARequestStreamP as _ironpdfengineproto_PdfiumConvertToPdfARequestStreamP, PdfiumConvertToPdfARequestStreamP__Output as _ironpdfengineproto_PdfiumConvertToPdfARequestStreamP__Output } from '../ironpdfengineproto/PdfiumConvertToPdfARequestStreamP';
|
|
45
|
+
import type { PdfiumConvertToPdfUAForScreenReaderRequestP as _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, PdfiumConvertToPdfUAForScreenReaderRequestP__Output as _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP__Output } from '../ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP';
|
|
45
46
|
import type { PdfiumConvertToPdfUARequestP as _ironpdfengineproto_PdfiumConvertToPdfUARequestP, PdfiumConvertToPdfUARequestP__Output as _ironpdfengineproto_PdfiumConvertToPdfUARequestP__Output } from '../ironpdfengineproto/PdfiumConvertToPdfUARequestP';
|
|
46
47
|
import type { PdfiumCopyPagesRequestP as _ironpdfengineproto_PdfiumCopyPagesRequestP, PdfiumCopyPagesRequestP__Output as _ironpdfengineproto_PdfiumCopyPagesRequestP__Output } from '../ironpdfengineproto/PdfiumCopyPagesRequestP';
|
|
47
48
|
import type { PdfiumDrawBitmapRequestStreamP as _ironpdfengineproto_PdfiumDrawBitmapRequestStreamP, PdfiumDrawBitmapRequestStreamP__Output as _ironpdfengineproto_PdfiumDrawBitmapRequestStreamP__Output } from '../ironpdfengineproto/PdfiumDrawBitmapRequestStreamP';
|
|
@@ -523,6 +524,15 @@ export interface IronPdfServiceClient extends grpc.Client {
|
|
|
523
524
|
pdfiumConvertToPdfUa(argument: _ironpdfengineproto_PdfiumConvertToPdfUARequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
524
525
|
pdfiumConvertToPdfUa(argument: _ironpdfengineproto_PdfiumConvertToPdfUARequestP, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
525
526
|
|
|
527
|
+
Pdfium_ConvertToPdfUAForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
528
|
+
Pdfium_ConvertToPdfUAForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, metadata: grpc.Metadata, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
529
|
+
Pdfium_ConvertToPdfUAForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
530
|
+
Pdfium_ConvertToPdfUAForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
531
|
+
pdfiumConvertToPdfUaForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
532
|
+
pdfiumConvertToPdfUaForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, metadata: grpc.Metadata, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
533
|
+
pdfiumConvertToPdfUaForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
534
|
+
pdfiumConvertToPdfUaForScreenReader(argument: _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, callback: grpc.requestCallback<_ironpdfengineproto_EmptyResultP__Output>): grpc.ClientUnaryCall;
|
|
535
|
+
|
|
526
536
|
Pdfium_Copy(argument: _ironpdfengineproto_PdfDocumentP, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_PdfDocumentResultP__Output>): grpc.ClientUnaryCall;
|
|
527
537
|
Pdfium_Copy(argument: _ironpdfengineproto_PdfDocumentP, metadata: grpc.Metadata, callback: grpc.requestCallback<_ironpdfengineproto_PdfDocumentResultP__Output>): grpc.ClientUnaryCall;
|
|
528
538
|
Pdfium_Copy(argument: _ironpdfengineproto_PdfDocumentP, options: grpc.CallOptions, callback: grpc.requestCallback<_ironpdfengineproto_PdfDocumentResultP__Output>): grpc.ClientUnaryCall;
|
|
@@ -1411,6 +1421,8 @@ export interface IronPdfServiceHandlers extends grpc.UntypedServiceImplementatio
|
|
|
1411
1421
|
|
|
1412
1422
|
Pdfium_ConvertToPdfUA: grpc.handleUnaryCall<_ironpdfengineproto_PdfiumConvertToPdfUARequestP__Output, _ironpdfengineproto_EmptyResultP>;
|
|
1413
1423
|
|
|
1424
|
+
Pdfium_ConvertToPdfUAForScreenReader: grpc.handleUnaryCall<_ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP__Output, _ironpdfengineproto_EmptyResultP>;
|
|
1425
|
+
|
|
1414
1426
|
Pdfium_Copy: grpc.handleUnaryCall<_ironpdfengineproto_PdfDocumentP__Output, _ironpdfengineproto_PdfDocumentResultP>;
|
|
1415
1427
|
|
|
1416
1428
|
Pdfium_Dispose: grpc.handleUnaryCall<_ironpdfengineproto_PdfDocumentP__Output, _ironpdfengineproto_EmptyResultP>;
|
|
@@ -1638,6 +1650,7 @@ export interface IronPdfServiceDefinition extends grpc.ServiceDefinition {
|
|
|
1638
1650
|
Pdfium_Compress_RemoveStructTree: MethodDefinition<_ironpdfengineproto_PdfiumRemoveStructTreeRequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumRemoveStructTreeRequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1639
1651
|
Pdfium_ConvertToPdfA: MethodDefinition<_ironpdfengineproto_PdfiumConvertToPdfARequestStreamP, _ironpdfengineproto_PdfDocumentResultP, _ironpdfengineproto_PdfiumConvertToPdfARequestStreamP__Output, _ironpdfengineproto_PdfDocumentResultP__Output>
|
|
1640
1652
|
Pdfium_ConvertToPdfUA: MethodDefinition<_ironpdfengineproto_PdfiumConvertToPdfUARequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumConvertToPdfUARequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1653
|
+
Pdfium_ConvertToPdfUAForScreenReader: MethodDefinition<_ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfiumConvertToPdfUAForScreenReaderRequestP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1641
1654
|
Pdfium_Copy: MethodDefinition<_ironpdfengineproto_PdfDocumentP, _ironpdfengineproto_PdfDocumentResultP, _ironpdfengineproto_PdfDocumentP__Output, _ironpdfengineproto_PdfDocumentResultP__Output>
|
|
1642
1655
|
Pdfium_Dispose: MethodDefinition<_ironpdfengineproto_PdfDocumentP, _ironpdfengineproto_EmptyResultP, _ironpdfengineproto_PdfDocumentP__Output, _ironpdfengineproto_EmptyResultP__Output>
|
|
1643
1656
|
Pdfium_EmbedFileToPdfA: MethodDefinition<_ironpdfengineproto_PdfiumEmbedFileToPdfARequestStreamP, _ironpdfengineproto_PdfDocumentResultP, _ironpdfengineproto_PdfiumEmbedFileToPdfARequestStreamP__Output, _ironpdfengineproto_PdfDocumentResultP__Output>
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface PdfiumAddLinkAnnotationRequestP {
|
|
|
8
8
|
'y'?: (number);
|
|
9
9
|
'width'?: (number);
|
|
10
10
|
'height'?: (number);
|
|
11
|
+
'showBorder'?: (boolean);
|
|
12
|
+
'_showBorder'?: "showBorder";
|
|
11
13
|
}
|
|
12
14
|
export interface PdfiumAddLinkAnnotationRequestP__Output {
|
|
13
15
|
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
@@ -18,5 +20,6 @@ export interface PdfiumAddLinkAnnotationRequestP__Output {
|
|
|
18
20
|
'y'?: (number);
|
|
19
21
|
'width'?: (number);
|
|
20
22
|
'height'?: (number);
|
|
23
|
+
'showBorder'?: (boolean);
|
|
21
24
|
}
|
|
22
25
|
//# sourceMappingURL=PdfiumAddLinkAnnotationRequestP.d.ts.map
|
package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PdfiumAddLinkAnnotationRequestP.d.ts","sourceRoot":"","sources":["PdfiumAddLinkAnnotationRequestP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gCAAgC,EAAE,oBAAoB,IAAI,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAE7K,MAAM,WAAW,+BAA+B;IAC9C,UAAU,CAAC,EAAE,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAClB,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACvB,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;
|
|
1
|
+
{"version":3,"file":"PdfiumAddLinkAnnotationRequestP.d.ts","sourceRoot":"","sources":["PdfiumAddLinkAnnotationRequestP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gCAAgC,EAAE,oBAAoB,IAAI,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAE7K,MAAM,WAAW,+BAA+B;IAC9C,UAAU,CAAC,EAAE,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAClB,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACvB,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;IACpB,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IACzB,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B;AAED,MAAM,WAAW,uCAAuC;IACtD,UAAU,CAAC,EAAE,CAAC,wCAAwC,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAClB,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACvB,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;IACpB,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;CAC1B"}
|
|
@@ -11,6 +11,8 @@ export interface PdfiumAddLinkAnnotationRequestP {
|
|
|
11
11
|
'y'?: (number);
|
|
12
12
|
'width'?: (number);
|
|
13
13
|
'height'?: (number);
|
|
14
|
+
'showBorder'?: (boolean);
|
|
15
|
+
'_showBorder'?: "showBorder";
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export interface PdfiumAddLinkAnnotationRequestP__Output {
|
|
@@ -22,4 +24,5 @@ export interface PdfiumAddLinkAnnotationRequestP__Output {
|
|
|
22
24
|
'y'?: (number);
|
|
23
25
|
'width'?: (number);
|
|
24
26
|
'height'?: (number);
|
|
27
|
+
'showBorder'?: (boolean);
|
|
25
28
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
2
|
+
export interface PdfiumConvertToPdfUAForScreenReaderRequestP {
|
|
3
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
4
|
+
'htmlDom'?: (string);
|
|
5
|
+
'lang'?: (number);
|
|
6
|
+
}
|
|
7
|
+
export interface PdfiumConvertToPdfUAForScreenReaderRequestP__Output {
|
|
8
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
9
|
+
'htmlDom'?: (string);
|
|
10
|
+
'lang'?: (number);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts","sourceRoot":"","sources":["PdfiumConvertToPdfUAForScreenReaderRequestP.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,gCAAgC,EAAE,oBAAoB,IAAI,wCAAwC,EAAE,MAAM,oCAAoC,CAAC;AAE7K,MAAM,WAAW,2CAA2C;IAC1D,UAAU,CAAC,EAAE,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;IACvD,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACnB;AAED,MAAM,WAAW,mDAAmD;IAClE,UAAU,CAAC,EAAE,CAAC,wCAAwC,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfiumConvertToPdfUAForScreenReaderRequestP.js","sourceRoot":"","sources":["PdfiumConvertToPdfUAForScreenReaderRequestP.ts"],"names":[],"mappings":";AAAA,iFAAiF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Original file: src/internal/IronPdfEngine.ProtoFiles/pdfium_pdf_document.proto
|
|
2
|
+
|
|
3
|
+
import type { PdfDocumentP as _ironpdfengineproto_PdfDocumentP, PdfDocumentP__Output as _ironpdfengineproto_PdfDocumentP__Output } from '../ironpdfengineproto/PdfDocumentP';
|
|
4
|
+
|
|
5
|
+
export interface PdfiumConvertToPdfUAForScreenReaderRequestP {
|
|
6
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP | null);
|
|
7
|
+
'htmlDom'?: (string);
|
|
8
|
+
'lang'?: (number);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface PdfiumConvertToPdfUAForScreenReaderRequestP__Output {
|
|
12
|
+
'document'?: (_ironpdfengineproto_PdfDocumentP__Output);
|
|
13
|
+
'htmlDom'?: (string);
|
|
14
|
+
'lang'?: (number);
|
|
15
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AffixFonts, BarcodeStampOptions, BarcodeType, CssMediaType, CustomPaperSize, FitToPaperModes, HorizontalAlignment, HtmlStampOptions, ImageBehavior, ImageStampOptions, Length, MeasurementUnit, PageInfo,
|
|
1
|
+
import { AffixFonts, BarcodeStampOptions, BarcodeType, CssMediaType, CustomPaperSize, FitToPaperModes, HorizontalAlignment, HtmlStampOptions, ImageBehavior, ImageStampOptions, Length, MeasurementUnit, PageInfo, PdfPageSelection, PdfPaperOrientation, PdfPaperSize, PdfPassword, TextStampOptions, UseMargins, VerticalAlignment, WaitFor } from "../../../public/types";
|
|
2
2
|
import { ChromePdfRenderOptionsP } from "../../generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP";
|
|
3
3
|
import { ChromeFitToPaperModesP } from "../../generated_proto/ironpdfengineproto/ChromeFitToPaperModesP";
|
|
4
4
|
import { ChromePdfPaperOrientationP } from "../../generated_proto/ironpdfengineproto/ChromePdfPaperOrientationP";
|
|
@@ -19,10 +19,10 @@ import { MeasurementUnitP } from "../../generated_proto/ironpdfengineproto/Measu
|
|
|
19
19
|
import { ChromeBarcodeEncodingP } from "../../generated_proto/ironpdfengineproto/ChromeBarcodeEncodingP";
|
|
20
20
|
import { VerticalAlignmentP } from "../../generated_proto/ironpdfengineproto/VerticalAlignmentP";
|
|
21
21
|
import { HorizontalAlignmentP } from "../../generated_proto/ironpdfengineproto/HorizontalAlignmentP";
|
|
22
|
-
export declare function fitToPaperModeToProto(fitToPaperMode
|
|
23
|
-
export declare function PdfPaperOrientationToProto(pdfPaperOrientation
|
|
24
|
-
export declare function CssMediaTypeToProto(cssMediaType
|
|
25
|
-
export declare function httpLoginCredentialsToProto(httpLoginCredentials?: HttpLoginCredentials): ChromeHttpLoginCredentialsP |
|
|
22
|
+
export declare function fitToPaperModeToProto(fitToPaperMode: FitToPaperModes): ChromeFitToPaperModesP;
|
|
23
|
+
export declare function PdfPaperOrientationToProto(pdfPaperOrientation: PdfPaperOrientation): ChromePdfPaperOrientationP;
|
|
24
|
+
export declare function CssMediaTypeToProto(cssMediaType: CssMediaType): ChromePdfCssMediaTypeP;
|
|
25
|
+
export declare function httpLoginCredentialsToProto(httpLoginCredentials?: HttpLoginCredentials | undefined): ChromeHttpLoginCredentialsP | null;
|
|
26
26
|
interface WaitForDetail {
|
|
27
27
|
type: number;
|
|
28
28
|
timeout: number;
|
|
@@ -32,32 +32,32 @@ interface WaitForDetail {
|
|
|
32
32
|
htmlElementQueryStr: string;
|
|
33
33
|
}
|
|
34
34
|
export declare function convertWaitFor(waitFor: WaitFor | undefined): WaitForDetail;
|
|
35
|
-
export declare function chromePdfRenderOptionsToProto(renderOption?: ChromePdfRenderOptions): ChromePdfRenderOptionsP;
|
|
35
|
+
export declare function chromePdfRenderOptionsToProto(renderOption?: ChromePdfRenderOptions | undefined): ChromePdfRenderOptionsP;
|
|
36
36
|
export declare function pdfPaperSizeIsCustom(pdfPaperSize: PdfPaperSize): boolean;
|
|
37
|
-
export declare function htmlAffixToProto(htmlAffix
|
|
38
|
-
export declare function textAffixToProto(textAffix: TextAffix): ChromeTextHeaderFooterP
|
|
37
|
+
export declare function htmlAffixToProto(htmlAffix: HtmlAffix): ChromeHtmlHeaderFooterP;
|
|
38
|
+
export declare function textAffixToProto(textAffix: TextAffix): ChromeTextHeaderFooterP;
|
|
39
39
|
export declare function fontToProto(affixFonts?: AffixFonts): FontTypeP | undefined;
|
|
40
|
-
export declare function useMarginsToProto(useMargins
|
|
41
|
-
export declare function paperSizeToProto(paperSize
|
|
42
|
-
export declare function pdfPaperSizeToProto(pdfPaperSize?: PdfPaperSize): {
|
|
40
|
+
export declare function useMarginsToProto(useMargins: UseMargins): ChromeUseMarginsP;
|
|
41
|
+
export declare function paperSizeToProto(paperSize: PaperSize): ChromePdfPaperSizeP;
|
|
42
|
+
export declare function pdfPaperSizeToProto(pdfPaperSize?: PdfPaperSize | undefined): {
|
|
43
43
|
paperSizeP: ChromePdfPaperSizeP;
|
|
44
|
-
widthHeight?: WidthHeight;
|
|
44
|
+
widthHeight?: WidthHeight | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
-
export declare function imageBehaviorToProto(imageBehavior?: ImageBehavior): ChromeImageBehaviorP |
|
|
46
|
+
export declare function imageBehaviorToProto(imageBehavior?: ImageBehavior | undefined): ChromeImageBehaviorP | null;
|
|
47
47
|
export declare function customPaperSizeToMm(customPaperSize: CustomPaperSize): WidthHeight;
|
|
48
48
|
export type WidthHeight = {
|
|
49
49
|
width: number;
|
|
50
50
|
height: number;
|
|
51
51
|
};
|
|
52
|
-
export declare function HtmlStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword, options?: HtmlStampOptions, pageSelection?: PdfPageSelection): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
53
|
-
export declare function TextStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword, options?: TextStampOptions, pageSelection?: PdfPageSelection): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
54
|
-
export declare function ImageStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword, options?: ImageStampOptions, pageSelection?: PdfPageSelection): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
55
|
-
export declare function BarcodeStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword, options?: BarcodeStampOptions, pageSelection?: PdfPageSelection): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
56
|
-
export declare function lengthToProto(length?: Length): LengthP |
|
|
57
|
-
export declare function measurementUnitToProto(measurementUnit
|
|
58
|
-
export declare function horizontalAlignmentToProto(horizontalAlignment?: HorizontalAlignment): HorizontalAlignmentP |
|
|
59
|
-
export declare function verticalAlignmentToProto(verticalAlignment?: VerticalAlignment): VerticalAlignmentP |
|
|
60
|
-
export declare function cssMediaTypeToProto(cssMediaType?: CssMediaType): ChromePdfCssMediaTypeP |
|
|
61
|
-
export declare function barcodeTypeToProto(barcodeType?: BarcodeType): ChromeBarcodeEncodingP |
|
|
52
|
+
export declare function HtmlStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword | undefined, options?: HtmlStampOptions | undefined, pageSelection?: PdfPageSelection | undefined): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
53
|
+
export declare function TextStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword | undefined, options?: TextStampOptions | undefined, pageSelection?: PdfPageSelection | undefined): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
54
|
+
export declare function ImageStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword | undefined, options?: ImageStampOptions | undefined, pageSelection?: PdfPageSelection | undefined): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
55
|
+
export declare function BarcodeStampOptionsToProto(id: string, pagesInfo: PageInfo[], password?: PdfPassword | undefined, options?: BarcodeStampOptions | undefined, pageSelection?: PdfPageSelection | undefined): _ironpdfengineproto_ChromeApplyStampRequestStreamP_InfoP;
|
|
56
|
+
export declare function lengthToProto(length?: Length): LengthP | null;
|
|
57
|
+
export declare function measurementUnitToProto(measurementUnit: MeasurementUnit): MeasurementUnitP;
|
|
58
|
+
export declare function horizontalAlignmentToProto(horizontalAlignment?: HorizontalAlignment | undefined): HorizontalAlignmentP | null;
|
|
59
|
+
export declare function verticalAlignmentToProto(verticalAlignment?: VerticalAlignment | undefined): VerticalAlignmentP | null;
|
|
60
|
+
export declare function cssMediaTypeToProto(cssMediaType?: CssMediaType | undefined): ChromePdfCssMediaTypeP | null;
|
|
61
|
+
export declare function barcodeTypeToProto(barcodeType?: BarcodeType | undefined): ChromeBarcodeEncodingP | null;
|
|
62
62
|
export {};
|
|
63
63
|
//# sourceMappingURL=converter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["converter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,mBAAmB,EACnB,WAAW,EAEX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,eAAe,EACf,QAAQ,
|
|
1
|
+
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["converter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,mBAAmB,EACnB,WAAW,EAEX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,eAAe,EACf,QAAQ,EAER,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,OAAO,EAEP,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,sBAAsB,EAAC,MAAM,iEAAiE,CAAC;AACvG,OAAO,EAAC,0BAA0B,EAAC,MAAM,qEAAqE,CAAC;AAC/G,OAAO,EAAC,sBAAsB,EAAC,MAAM,iEAAiE,CAAC;AACvG,OAAO,EAAC,mBAAmB,EAAC,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAC,iBAAiB,EAAC,MAAM,4DAA4D,CAAC;AAC7F,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,SAAS,EAAC,MAAM,oDAAoD,CAAC;AAC7E,OAAO,EAAC,2BAA2B,EAAC,MAAM,sEAAsE,CAAC;AACjH,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,sBAAsB,EAAiC,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpH,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AAEnG,OAAO,EACN,wDAAwD,EACxD,MAAM,yEAAyE,CAAC;AACjF,OAAO,EAAC,OAAO,EAAC,MAAM,kDAAkD,CAAC;AACzE,OAAO,EAAC,gBAAgB,EAAC,MAAM,2DAA2D,CAAC;AAC3F,OAAO,EAAC,sBAAsB,EAAC,MAAM,iEAAiE,CAAC;AACvG,OAAO,EAAC,kBAAkB,EAAC,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AAInG,wBAAgB,qBAAqB,CACpC,cAAc,EAAE,eAAe,GAC7B,sBAAsB,CAExB;AAED,wBAAgB,0BAA0B,CACzC,mBAAmB,EAAE,mBAAmB,GACtC,0BAA0B,CAE5B;AAED,wBAAgB,mBAAmB,CAClC,YAAY,EAAE,YAAY,GACxB,sBAAsB,CAExB;AAED,wBAAgB,2BAA2B,CAC1C,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,GACrD,2BAA2B,GAAG,IAAI,CAGpC;AAED,UAAU,aAAa;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,aAAa,CAqF1E;AAED,wBAAgB,6BAA6B,CAC5C,YAAY,CAAC,EAAE,sBAAsB,GAAG,SAAS,GAC/C,uBAAuB,CA6FzB;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,YAAY,WAK9D;AAED,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,SAAS,GAClB,uBAAuB,CAUzB;AAED,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,SAAS,GAClB,uBAAuB,CAUzB;AAED,wBAAgB,WAAW,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAG1E;AAED,wBAAgB,iBAAiB,CAChC,UAAU,EAAE,UAAU,GACpB,iBAAiB,CAEnB;AAED,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,SAAS,GAClB,mBAAmB,CAErB;AA2ND,wBAAgB,mBAAmB,CAClC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,GACrC;IAAE,UAAU,EAAE,mBAAmB,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,CAkBxF;AAED,wBAAgB,oBAAoB,CACnC,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,GACvC,oBAAoB,GAAG,IAAI,CAG7B;AAED,wBAAgB,mBAAmB,CAClC,eAAe,EAAE,eAAe,GAC9B,WAAW,CAuBb;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AA6D5D,wBAAgB,uBAAuB,CACtC,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,QAAQ,EAAE,EACrB,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,EAClC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,EACtC,aAAa,CAAC,EAAE,gBAAgB,GAAG,SAAS,GAC1C,wDAAwD,CAc1D;AAED,wBAAgB,uBAAuB,CACtC,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,QAAQ,EAAE,EACrB,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,EAClC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,EACtC,aAAa,CAAC,EAAE,gBAAgB,GAAG,SAAS,GAC1C,wDAAwD,CAqB1D;AAED,wBAAgB,wBAAwB,CACvC,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,QAAQ,EAAE,EACrB,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,EAClC,OAAO,CAAC,EAAE,iBAAiB,GAAG,SAAS,EACvC,aAAa,CAAC,EAAE,gBAAgB,GAAG,SAAS,GAC1C,wDAAwD,CAW1D;AAED,wBAAgB,0BAA0B,CACzC,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,QAAQ,EAAE,EACrB,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,EAClC,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,EACzC,aAAa,CAAC,EAAE,gBAAgB,GAAG,SAAS,GAC1C,wDAAwD,CAiB1D;AAED,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAM7D;AAED,wBAAgB,sBAAsB,CACrC,eAAe,EAAE,eAAe,GAC9B,gBAAgB,CAIlB;AAED,wBAAgB,0BAA0B,CACzC,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,SAAS,GACnD,oBAAoB,GAAG,IAAI,CAK7B;AAED,wBAAgB,wBAAwB,CACvC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,GAC/C,kBAAkB,GAAG,IAAI,CAK3B;AAED,wBAAgB,mBAAmB,CAClC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,GACrC,sBAAsB,GAAG,IAAI,CAK/B;AAED,wBAAgB,kBAAkB,CACjC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,GACnC,sBAAsB,GAAG,IAAI,CAK/B"}
|
|
@@ -7,26 +7,20 @@ const render_1 = require("../../../public/render");
|
|
|
7
7
|
const converter_1 = require("../pdfium/converter");
|
|
8
8
|
const util_1 = require("../util");
|
|
9
9
|
function fitToPaperModeToProto(fitToPaperMode) {
|
|
10
|
-
if (!fitToPaperMode)
|
|
11
|
-
return undefined;
|
|
12
10
|
return { enumValue: fitToPaperMode };
|
|
13
11
|
}
|
|
14
12
|
exports.fitToPaperModeToProto = fitToPaperModeToProto;
|
|
15
13
|
function PdfPaperOrientationToProto(pdfPaperOrientation) {
|
|
16
|
-
if (!pdfPaperOrientation)
|
|
17
|
-
return undefined;
|
|
18
14
|
return { enumValue: pdfPaperOrientation };
|
|
19
15
|
}
|
|
20
16
|
exports.PdfPaperOrientationToProto = PdfPaperOrientationToProto;
|
|
21
17
|
function CssMediaTypeToProto(cssMediaType) {
|
|
22
|
-
if (!cssMediaType)
|
|
23
|
-
return undefined;
|
|
24
18
|
return { enumValue: cssMediaType };
|
|
25
19
|
}
|
|
26
20
|
exports.CssMediaTypeToProto = CssMediaTypeToProto;
|
|
27
21
|
function httpLoginCredentialsToProto(httpLoginCredentials) {
|
|
28
22
|
if (!httpLoginCredentials)
|
|
29
|
-
return
|
|
23
|
+
return null;
|
|
30
24
|
throw new Error("not implement");
|
|
31
25
|
}
|
|
32
26
|
exports.httpLoginCredentialsToProto = httpLoginCredentialsToProto;
|
|
@@ -115,23 +109,23 @@ function convertWaitFor(waitFor) {
|
|
|
115
109
|
}
|
|
116
110
|
exports.convertWaitFor = convertWaitFor;
|
|
117
111
|
function chromePdfRenderOptionsToProto(renderOption) {
|
|
118
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
112
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
119
113
|
if (!renderOption)
|
|
120
114
|
renderOption = (0, render_1.defaultChromePdfRenderOptions)();
|
|
121
115
|
const waitForDetail = convertWaitFor(renderOption.waitFor);
|
|
122
116
|
const proto = {
|
|
123
|
-
createPdfFormsFromHtml: renderOption.createPdfFormsFromHtml,
|
|
124
|
-
customCssUrl: renderOption.customCssUrl,
|
|
125
|
-
enableJavaScript: renderOption.enableJavaScript,
|
|
126
|
-
fitToPaperMode: fitToPaperModeToProto(renderOption.fitToPaperMode),
|
|
127
|
-
grayScale: renderOption.grayScale,
|
|
128
|
-
marginTop: ((
|
|
129
|
-
marginBottom: ((
|
|
130
|
-
marginLeft: ((
|
|
131
|
-
marginRight: ((
|
|
132
|
-
paperOrientation: PdfPaperOrientationToProto(renderOption.paperOrientation),
|
|
133
|
-
printHtmlBackgrounds: renderOption.printHtmlBackgrounds,
|
|
134
|
-
timeout: (
|
|
117
|
+
createPdfFormsFromHtml: (_a = renderOption.createPdfFormsFromHtml) !== null && _a !== void 0 ? _a : true,
|
|
118
|
+
customCssUrl: (_b = renderOption.customCssUrl) !== null && _b !== void 0 ? _b : "",
|
|
119
|
+
enableJavaScript: (_c = renderOption.enableJavaScript) !== null && _c !== void 0 ? _c : true,
|
|
120
|
+
fitToPaperMode: fitToPaperModeToProto((_d = renderOption.fitToPaperMode) !== null && _d !== void 0 ? _d : types_1.FitToPaperModes.Default),
|
|
121
|
+
grayScale: (_e = renderOption.grayScale) !== null && _e !== void 0 ? _e : false,
|
|
122
|
+
marginTop: (_h = (((_f = renderOption.margin) === null || _f === void 0 ? void 0 : _f.top) || ((_g = renderOption.margin) === null || _g === void 0 ? void 0 : _g.default))) !== null && _h !== void 0 ? _h : 25,
|
|
123
|
+
marginBottom: (_l = (((_j = renderOption.margin) === null || _j === void 0 ? void 0 : _j.bottom) || ((_k = renderOption.margin) === null || _k === void 0 ? void 0 : _k.default))) !== null && _l !== void 0 ? _l : 25,
|
|
124
|
+
marginLeft: (_p = (((_m = renderOption.margin) === null || _m === void 0 ? void 0 : _m.left) || ((_o = renderOption.margin) === null || _o === void 0 ? void 0 : _o.default))) !== null && _p !== void 0 ? _p : 25,
|
|
125
|
+
marginRight: (_s = (((_q = renderOption.margin) === null || _q === void 0 ? void 0 : _q.right) || ((_r = renderOption.margin) === null || _r === void 0 ? void 0 : _r.default))) !== null && _s !== void 0 ? _s : 25,
|
|
126
|
+
paperOrientation: PdfPaperOrientationToProto((_t = renderOption.paperOrientation) !== null && _t !== void 0 ? _t : types_1.PdfPaperOrientation.Portrait),
|
|
127
|
+
printHtmlBackgrounds: (_u = renderOption.printHtmlBackgrounds) !== null && _u !== void 0 ? _u : true,
|
|
128
|
+
timeout: (_v = renderOption.timeout) !== null && _v !== void 0 ? _v : 60,
|
|
135
129
|
waitFor: {
|
|
136
130
|
Type: waitForDetail.type,
|
|
137
131
|
Timeout: waitForDetail.timeout,
|
|
@@ -144,29 +138,35 @@ function chromePdfRenderOptionsToProto(renderOption) {
|
|
|
144
138
|
// WaitForType: waitForDetail.type,
|
|
145
139
|
// WaitForNumAllowedInflight: waitForDetail.numAllowedInFlight,
|
|
146
140
|
// WaitForTimeout: waitForDetail.timeout,
|
|
147
|
-
title: renderOption.title,
|
|
141
|
+
title: (_w = renderOption.title) !== null && _w !== void 0 ? _w : "",
|
|
148
142
|
viewPortHeight: 1280,
|
|
149
143
|
viewPortWidth: 1024,
|
|
150
144
|
zoom: 100,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
javascript: renderOption.javascript,
|
|
154
|
-
firstPageNumber: renderOption.firstPageNumber,
|
|
155
|
-
useMarginsOnHeaderFooter: useMarginsToProto(renderOption.useMarginsOnHeaderAndFooter),
|
|
145
|
+
javascript: (_x = renderOption.javascript) !== null && _x !== void 0 ? _x : "",
|
|
146
|
+
firstPageNumber: (_y = renderOption.firstPageNumber) !== null && _y !== void 0 ? _y : 1,
|
|
156
147
|
};
|
|
157
|
-
if (renderOption.
|
|
148
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.cssMediaType)) {
|
|
149
|
+
proto.cssMediaType = CssMediaTypeToProto(renderOption.cssMediaType);
|
|
150
|
+
}
|
|
151
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.inputEncoding)) {
|
|
152
|
+
proto.inputEncoding = renderOption.inputEncoding;
|
|
153
|
+
}
|
|
154
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.useMarginsOnHeaderAndFooter)) {
|
|
155
|
+
proto.useMarginsOnHeaderFooter = useMarginsToProto(renderOption.useMarginsOnHeaderAndFooter);
|
|
156
|
+
}
|
|
157
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.htmlHeader)) {
|
|
158
158
|
proto.htmlHeader = htmlAffixToProto(renderOption.htmlHeader);
|
|
159
159
|
}
|
|
160
|
-
if (renderOption.htmlFooter) {
|
|
160
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.htmlFooter)) {
|
|
161
161
|
proto.htmlFooter = htmlAffixToProto(renderOption.htmlFooter);
|
|
162
162
|
}
|
|
163
|
-
if (renderOption.textHeader) {
|
|
163
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.textHeader)) {
|
|
164
164
|
proto.textHeader = textAffixToProto(renderOption.textHeader);
|
|
165
165
|
}
|
|
166
|
-
if (renderOption.textFooter) {
|
|
166
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.textFooter)) {
|
|
167
167
|
proto.textFooter = textAffixToProto(renderOption.textFooter);
|
|
168
168
|
}
|
|
169
|
-
if (renderOption.paperSize) {
|
|
169
|
+
if (!(0, util_1.isNullOrUndefined)(renderOption.paperSize)) {
|
|
170
170
|
if (pdfPaperSizeIsCustom(renderOption.paperSize)) {
|
|
171
171
|
const wh = customPaperSizeToMm(renderOption.paperSize);
|
|
172
172
|
proto.customPaperHeight = wh.height;
|
|
@@ -181,21 +181,14 @@ function chromePdfRenderOptionsToProto(renderOption) {
|
|
|
181
181
|
}
|
|
182
182
|
exports.chromePdfRenderOptionsToProto = chromePdfRenderOptionsToProto;
|
|
183
183
|
function pdfPaperSizeIsCustom(pdfPaperSize) {
|
|
184
|
-
|
|
184
|
+
return pdfPaperSize instanceof Object &&
|
|
185
185
|
"width" in pdfPaperSize &&
|
|
186
186
|
"height" in pdfPaperSize &&
|
|
187
|
-
"unit" in pdfPaperSize
|
|
188
|
-
return true;
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
187
|
+
"unit" in pdfPaperSize;
|
|
193
188
|
}
|
|
194
189
|
exports.pdfPaperSizeIsCustom = pdfPaperSizeIsCustom;
|
|
195
190
|
function htmlAffixToProto(htmlAffix) {
|
|
196
191
|
var _a, _b, _c, _d, _e;
|
|
197
|
-
if (!htmlAffix)
|
|
198
|
-
return undefined;
|
|
199
192
|
return {
|
|
200
193
|
htmlFragment: (_a = htmlAffix.htmlFragment) !== null && _a !== void 0 ? _a : "",
|
|
201
194
|
// baseUrl: htmlAffix.baseUrl, //not supported
|
|
@@ -207,24 +200,23 @@ function htmlAffixToProto(htmlAffix) {
|
|
|
207
200
|
}
|
|
208
201
|
exports.htmlAffixToProto = htmlAffixToProto;
|
|
209
202
|
function textAffixToProto(textAffix) {
|
|
210
|
-
var _a, _b, _c;
|
|
211
|
-
if (!textAffix)
|
|
212
|
-
return undefined;
|
|
203
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
213
204
|
return {
|
|
214
|
-
leftText: textAffix.leftText,
|
|
215
|
-
rightText: textAffix.rightText,
|
|
216
|
-
centerText: textAffix.centerText,
|
|
217
|
-
font: fontToProto(textAffix.font),
|
|
218
|
-
fontSize: (
|
|
219
|
-
dividerLineColor: (
|
|
220
|
-
drawDividerLine: (
|
|
205
|
+
leftText: (_a = textAffix === null || textAffix === void 0 ? void 0 : textAffix.leftText) !== null && _a !== void 0 ? _a : "",
|
|
206
|
+
rightText: (_b = textAffix === null || textAffix === void 0 ? void 0 : textAffix.rightText) !== null && _b !== void 0 ? _b : "",
|
|
207
|
+
centerText: (_c = textAffix === null || textAffix === void 0 ? void 0 : textAffix.centerText) !== null && _c !== void 0 ? _c : "",
|
|
208
|
+
font: (_d = fontToProto(textAffix.font)) !== null && _d !== void 0 ? _d : null,
|
|
209
|
+
fontSize: (_e = textAffix.fontSize) !== null && _e !== void 0 ? _e : 12,
|
|
210
|
+
dividerLineColor: (_f = textAffix.dividerLineColor) !== null && _f !== void 0 ? _f : "#B1B1B1",
|
|
211
|
+
drawDividerLine: (_g = textAffix.dividerLine) !== null && _g !== void 0 ? _g : false,
|
|
221
212
|
};
|
|
222
213
|
}
|
|
223
214
|
exports.textAffixToProto = textAffixToProto;
|
|
224
215
|
function fontToProto(affixFonts) {
|
|
216
|
+
var _a, _b, _c, _d;
|
|
225
217
|
if (!affixFonts)
|
|
226
|
-
return { name: types_1.AffixFonts[types_1.AffixFonts.Arial].replace("_", "-") };
|
|
227
|
-
return { name: types_1.AffixFonts[affixFonts].replace("_", "-") };
|
|
218
|
+
return { name: (_b = (_a = types_1.AffixFonts[types_1.AffixFonts.Arial]) === null || _a === void 0 ? void 0 : _a.replace("_", "-")) !== null && _b !== void 0 ? _b : "" };
|
|
219
|
+
return { name: (_d = (_c = types_1.AffixFonts[affixFonts]) === null || _c === void 0 ? void 0 : _c.replace("_", "-")) !== null && _d !== void 0 ? _d : "" };
|
|
228
220
|
}
|
|
229
221
|
exports.fontToProto = fontToProto;
|
|
230
222
|
function useMarginsToProto(useMargins) {
|
|
@@ -232,8 +224,6 @@ function useMarginsToProto(useMargins) {
|
|
|
232
224
|
}
|
|
233
225
|
exports.useMarginsToProto = useMarginsToProto;
|
|
234
226
|
function paperSizeToProto(paperSize) {
|
|
235
|
-
if (!paperSize)
|
|
236
|
-
return undefined;
|
|
237
227
|
return { enumValue: paperSize };
|
|
238
228
|
}
|
|
239
229
|
exports.paperSizeToProto = paperSizeToProto;
|
|
@@ -456,16 +446,14 @@ function toMillimeters(paperSize) {
|
|
|
456
446
|
function pdfPaperSizeToProto(pdfPaperSize) {
|
|
457
447
|
if (!pdfPaperSize)
|
|
458
448
|
return undefined;
|
|
459
|
-
if (typeof pdfPaperSize === "object") {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
};
|
|
468
|
-
}
|
|
449
|
+
if (typeof pdfPaperSize === "object" && "width" in pdfPaperSize) {
|
|
450
|
+
return {
|
|
451
|
+
paperSizeP: { enumValue: 106 },
|
|
452
|
+
widthHeight: {
|
|
453
|
+
width: pdfPaperSize.width,
|
|
454
|
+
height: pdfPaperSize.height,
|
|
455
|
+
},
|
|
456
|
+
};
|
|
469
457
|
}
|
|
470
458
|
else {
|
|
471
459
|
const wh = toMillimeters(pdfPaperSize);
|
|
@@ -478,7 +466,7 @@ function pdfPaperSizeToProto(pdfPaperSize) {
|
|
|
478
466
|
exports.pdfPaperSizeToProto = pdfPaperSizeToProto;
|
|
479
467
|
function imageBehaviorToProto(imageBehavior) {
|
|
480
468
|
if (!imageBehavior)
|
|
481
|
-
return
|
|
469
|
+
return null;
|
|
482
470
|
return { enumValue: imageBehavior };
|
|
483
471
|
}
|
|
484
472
|
exports.imageBehaviorToProto = imageBehaviorToProto;
|
|
@@ -508,39 +496,43 @@ function customPaperSizeToMm(customPaperSize) {
|
|
|
508
496
|
}
|
|
509
497
|
exports.customPaperSizeToMm = customPaperSizeToMm;
|
|
510
498
|
function BaseStampOptionsToProto(id, pagesInfo, defaultRenderDelay, password, options, pageSelection) {
|
|
511
|
-
var _a, _b, _c, _d;
|
|
512
|
-
const pi = (_a = (0, util_1.PdfPageSelectionToIndexes)(
|
|
499
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
500
|
+
const pi = (_a = (0, util_1.PdfPageSelectionToIndexes)(pagesInfo, pageSelection)) !== null && _a !== void 0 ? _a : Array.from({
|
|
513
501
|
length: pagesInfo.length,
|
|
514
|
-
}).map((
|
|
515
|
-
const
|
|
502
|
+
}).map((_, index) => index);
|
|
503
|
+
const pages = pi.map((pageIndex) => {
|
|
516
504
|
// if (pagesInfo) {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
height: pagesInfo[pageIndex].millimeterHeight,
|
|
520
|
-
pageIndex: pageIndex,
|
|
521
|
-
pageRotation: (0, converter_1.PageRotationToProto)(pagesInfo[pageIndex].pageRotation),
|
|
522
|
-
printWidth: pagesInfo[pageIndex].printerPointWidth,
|
|
523
|
-
printHeight: pagesInfo[pageIndex].printerPointHeight,
|
|
505
|
+
const pageP = {
|
|
506
|
+
pageIndex: pageIndex
|
|
524
507
|
};
|
|
508
|
+
const pageInfo = pagesInfo[pageIndex];
|
|
509
|
+
if (!(0, util_1.isNullOrUndefined)(pageInfo)) {
|
|
510
|
+
pageP.width = pageInfo.millimeterWidth;
|
|
511
|
+
pageP.height = pageInfo.millimeterHeight;
|
|
512
|
+
pageP.pageRotation = (0, converter_1.PageRotationToProto)(pageInfo.pageRotation);
|
|
513
|
+
pageP.printWidth = pageInfo.printerPointWidth;
|
|
514
|
+
pageP.printHeight = pageInfo.printerPointHeight;
|
|
515
|
+
}
|
|
516
|
+
return pageP;
|
|
525
517
|
// }
|
|
526
518
|
// return { pageIndex: pageIndex };
|
|
527
519
|
});
|
|
528
520
|
return {
|
|
529
521
|
document: { documentId: id },
|
|
530
|
-
hyperlink: options === null || options === void 0 ? void 0 : options.hyperlink,
|
|
522
|
+
hyperlink: (_b = options === null || options === void 0 ? void 0 : options.hyperlink) !== null && _b !== void 0 ? _b : "",
|
|
531
523
|
horizontalAlignment: horizontalAlignmentToProto(options === null || options === void 0 ? void 0 : options.horizontalAlignment),
|
|
532
524
|
verticalAlignment: verticalAlignmentToProto(options === null || options === void 0 ? void 0 : options.verticalAlignment),
|
|
533
525
|
horizontalOffset: lengthToProto(options === null || options === void 0 ? void 0 : options.horizontalOffset),
|
|
534
526
|
verticalOffset: lengthToProto(options === null || options === void 0 ? void 0 : options.verticalOffset),
|
|
535
|
-
isStampBehindContent: (
|
|
536
|
-
opacity: options === null || options === void 0 ? void 0 : options.opacity,
|
|
537
|
-
rotation: options === null || options === void 0 ? void 0 : options.rotation,
|
|
538
|
-
scale: options === null || options === void 0 ? void 0 : options.scale,
|
|
539
|
-
targetPages:
|
|
540
|
-
ownerPassword: password === null || password === void 0 ? void 0 : password.ownerPassword,
|
|
541
|
-
userPassword: password === null || password === void 0 ? void 0 : password.userPassword,
|
|
542
|
-
renderDelay: (
|
|
543
|
-
timeout: (
|
|
527
|
+
isStampBehindContent: (_c = options === null || options === void 0 ? void 0 : options.behindExistingContent) !== null && _c !== void 0 ? _c : false,
|
|
528
|
+
opacity: (_d = options === null || options === void 0 ? void 0 : options.opacity) !== null && _d !== void 0 ? _d : 100,
|
|
529
|
+
rotation: (_e = options === null || options === void 0 ? void 0 : options.rotation) !== null && _e !== void 0 ? _e : 0,
|
|
530
|
+
scale: (_f = options === null || options === void 0 ? void 0 : options.scale) !== null && _f !== void 0 ? _f : 100,
|
|
531
|
+
targetPages: pages !== null && pages !== void 0 ? pages : [],
|
|
532
|
+
ownerPassword: (_g = password === null || password === void 0 ? void 0 : password.ownerPassword) !== null && _g !== void 0 ? _g : "",
|
|
533
|
+
userPassword: (_h = password === null || password === void 0 ? void 0 : password.userPassword) !== null && _h !== void 0 ? _h : "",
|
|
534
|
+
renderDelay: (_j = options === null || options === void 0 ? void 0 : options.renderDelay) !== null && _j !== void 0 ? _j : defaultRenderDelay,
|
|
535
|
+
timeout: (_k = options === null || options === void 0 ? void 0 : options.timeout) !== null && _k !== void 0 ? _k : 60,
|
|
544
536
|
maxHeight: lengthToProto(options === null || options === void 0 ? void 0 : options.maxHeight),
|
|
545
537
|
minHeight: lengthToProto(options === null || options === void 0 ? void 0 : options.minHeight),
|
|
546
538
|
maxWidth: lengthToProto(options === null || options === void 0 ? void 0 : options.maxWidth),
|
|
@@ -557,17 +549,18 @@ function HtmlStampOptionsToProto(id, pagesInfo, password, options, pageSelection
|
|
|
557
549
|
}
|
|
558
550
|
exports.HtmlStampOptionsToProto = HtmlStampOptionsToProto;
|
|
559
551
|
function TextStampOptionsToProto(id, pagesInfo, password, options, pageSelection) {
|
|
552
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
560
553
|
const base = BaseStampOptionsToProto(id, pagesInfo, 0, password, options, pageSelection);
|
|
561
554
|
base.textStamper = {
|
|
562
|
-
textColor: options === null || options === void 0 ? void 0 : options.textColor,
|
|
563
|
-
fontSize: options === null || options === void 0 ? void 0 : options.fontSize,
|
|
564
|
-
backgroundColor: options === null || options === void 0 ? void 0 : options.backgroundColor,
|
|
565
|
-
fontFamily: options === null || options === void 0 ? void 0 : options.fontFamily,
|
|
566
|
-
isBold: options === null || options === void 0 ? void 0 : options.isBold,
|
|
567
|
-
isItalic: options === null || options === void 0 ? void 0 : options.isItalic,
|
|
568
|
-
isStrikethrough: options === null || options === void 0 ? void 0 : options.isStrikethrough,
|
|
569
|
-
isUnderline: options === null || options === void 0 ? void 0 : options.isUnderline,
|
|
570
|
-
useGoogleFont: options === null || options === void 0 ? void 0 : options.useGoogleFont,
|
|
555
|
+
textColor: (_a = options === null || options === void 0 ? void 0 : options.textColor) !== null && _a !== void 0 ? _a : "#000000",
|
|
556
|
+
fontSize: (_b = options === null || options === void 0 ? void 0 : options.fontSize) !== null && _b !== void 0 ? _b : 12,
|
|
557
|
+
backgroundColor: (_c = options === null || options === void 0 ? void 0 : options.backgroundColor) !== null && _c !== void 0 ? _c : "#00FFFFFF",
|
|
558
|
+
fontFamily: (_d = options === null || options === void 0 ? void 0 : options.fontFamily) !== null && _d !== void 0 ? _d : "Arial",
|
|
559
|
+
isBold: (_e = options === null || options === void 0 ? void 0 : options.isBold) !== null && _e !== void 0 ? _e : false,
|
|
560
|
+
isItalic: (_f = options === null || options === void 0 ? void 0 : options.isItalic) !== null && _f !== void 0 ? _f : false,
|
|
561
|
+
isStrikethrough: (_g = options === null || options === void 0 ? void 0 : options.isStrikethrough) !== null && _g !== void 0 ? _g : false,
|
|
562
|
+
isUnderline: (_h = options === null || options === void 0 ? void 0 : options.isUnderline) !== null && _h !== void 0 ? _h : false,
|
|
563
|
+
useGoogleFont: (_j = options === null || options === void 0 ? void 0 : options.useGoogleFont) !== null && _j !== void 0 ? _j : false,
|
|
571
564
|
};
|
|
572
565
|
return base;
|
|
573
566
|
}
|
|
@@ -591,7 +584,7 @@ function BarcodeStampOptionsToProto(id, pagesInfo, password, options, pageSelect
|
|
|
591
584
|
exports.BarcodeStampOptionsToProto = BarcodeStampOptionsToProto;
|
|
592
585
|
function lengthToProto(length) {
|
|
593
586
|
if (!length)
|
|
594
|
-
return
|
|
587
|
+
return null;
|
|
595
588
|
return {
|
|
596
589
|
value: length.value,
|
|
597
590
|
unit: measurementUnitToProto(length.unit),
|
|
@@ -599,8 +592,6 @@ function lengthToProto(length) {
|
|
|
599
592
|
}
|
|
600
593
|
exports.lengthToProto = lengthToProto;
|
|
601
594
|
function measurementUnitToProto(measurementUnit) {
|
|
602
|
-
if (!measurementUnit)
|
|
603
|
-
return undefined;
|
|
604
595
|
return {
|
|
605
596
|
enumValue: measurementUnit,
|
|
606
597
|
};
|
|
@@ -608,7 +599,7 @@ function measurementUnitToProto(measurementUnit) {
|
|
|
608
599
|
exports.measurementUnitToProto = measurementUnitToProto;
|
|
609
600
|
function horizontalAlignmentToProto(horizontalAlignment) {
|
|
610
601
|
if (!horizontalAlignment)
|
|
611
|
-
return
|
|
602
|
+
return null;
|
|
612
603
|
return {
|
|
613
604
|
enumValue: horizontalAlignment,
|
|
614
605
|
};
|
|
@@ -616,7 +607,7 @@ function horizontalAlignmentToProto(horizontalAlignment) {
|
|
|
616
607
|
exports.horizontalAlignmentToProto = horizontalAlignmentToProto;
|
|
617
608
|
function verticalAlignmentToProto(verticalAlignment) {
|
|
618
609
|
if (!verticalAlignment)
|
|
619
|
-
return
|
|
610
|
+
return null;
|
|
620
611
|
return {
|
|
621
612
|
enumValue: verticalAlignment,
|
|
622
613
|
};
|
|
@@ -624,7 +615,7 @@ function verticalAlignmentToProto(verticalAlignment) {
|
|
|
624
615
|
exports.verticalAlignmentToProto = verticalAlignmentToProto;
|
|
625
616
|
function cssMediaTypeToProto(cssMediaType) {
|
|
626
617
|
if (!cssMediaType)
|
|
627
|
-
return
|
|
618
|
+
return null;
|
|
628
619
|
return {
|
|
629
620
|
enumValue: cssMediaType,
|
|
630
621
|
};
|
|
@@ -632,7 +623,7 @@ function cssMediaTypeToProto(cssMediaType) {
|
|
|
632
623
|
exports.cssMediaTypeToProto = cssMediaTypeToProto;
|
|
633
624
|
function barcodeTypeToProto(barcodeType) {
|
|
634
625
|
if (!barcodeType)
|
|
635
|
-
return
|
|
626
|
+
return null;
|
|
636
627
|
return {
|
|
637
628
|
enumValue: barcodeType,
|
|
638
629
|
};
|