@thegrizzlylabs/cordova-plugin-genius-scan 4.8.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +1 -1
- package/plugin.xml +7 -5
- package/src/ios/GSSDK/GSSDKCore.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKCore.h +1 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKLogger.h +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKLoggerSeverity.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFDocument.h +2 -10
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFGeneratorConfiguration.h +21 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFGeneratorError.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFImageProcessor.h +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFPage.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFSize.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKTextLayout.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKTextLayoutToTextConverter.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKTextLayoutToTextConverterResult.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKTextLayoutToTextConverterStatus.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSSDKCore-Swift.h +4 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSSDKCore.h +1 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios.abi.json +86 -4
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios.swiftinterface +2 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/dSYMs/GSSDKCore.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/dSYMs/GSSDKCore.framework.dSYM/Contents/Resources/DWARF/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKCore.h +1 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKLogger.h +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKLoggerSeverity.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKPDFDocument.h +2 -10
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKPDFGeneratorConfiguration.h +21 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKPDFGeneratorError.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKPDFImageProcessor.h +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKPDFPage.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKPDFSize.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKTextLayout.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKTextLayoutToTextConverter.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKTextLayoutToTextConverterResult.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSKTextLayoutToTextConverterStatus.h +1 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSSDKCore-Swift.h +8 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Headers/GSSDKCore.h +1 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios-simulator.abi.json +86 -4
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/x86_64-apple-ios-simulator.abi.json +86 -4
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Modules/GSSDKCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -1
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKCore.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKCore.framework.dSYM/Contents/Resources/DWARF/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/GSSDKOCR.framework/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/GSSDKOCR.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/dSYMs/GSSDKOCR.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/dSYMs/GSSDKOCR.framework.dSYM/Contents/Resources/DWARF/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKOCR.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKOCR.framework.dSYM/Contents/Resources/DWARF/GSSDKOCR +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Headers/GSKScanFlow.h +7 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Resources/DWARF/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Headers/GSKScanFlow.h +7 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Resources/DWARF/GSSDKScanFlow +0 -0
package/README.md
CHANGED
|
@@ -118,6 +118,7 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
|
|
|
118
118
|
- `defaultFilter`: `none`, `blackAndWhite`, `monochrome`, `color`, `photo` (by default, the filter is chosen automatically)
|
|
119
119
|
- `pdfPageSize`: `fit`, `a4`, `letter`, defaults to fit.
|
|
120
120
|
- `pdfMaxScanDimension`: max dimension in pixels when images are scaled before PDF generation, for example 2000 to fit both height and width within 2000px. Defaults to 0, which means no scaling is performed.
|
|
121
|
+
- `pdfFontFileUrl`: Custom font file used during the PDF generation to embed an invisible text layer. If null, a default font is used, which only supports Latin languages.
|
|
121
122
|
- `jpegQuality`: JPEG quality used to compress captured images. Between 0 and 100, 100 being the best quality. Default is 60.
|
|
122
123
|
- `postProcessingActions`: an array with the desired actions to display during the post processing screen (defaults to all actions). Possible actions are `rotate`, `editFilter` and `correctDistortion`.
|
|
123
124
|
- `flashButtonHidden`: boolean (default to false)
|
|
@@ -138,6 +139,7 @@ It returns a promise with `result` object containing:
|
|
|
138
139
|
- `enhancedUrl`: the cropped and enhanced file, as processed by the SDK. "file://<filepath>.{jpeg|png}"
|
|
139
140
|
- `ocrResult`: the result of text recognition for this scan
|
|
140
141
|
- `text`: the raw text that was recognized
|
|
142
|
+
- `hocrTextLayout`: the recognized text in [hOCR](https://en.wikipedia.org/wiki/HOCR) format (with position, style…)
|
|
141
143
|
|
|
142
144
|
### Error callback
|
|
143
145
|
|
|
@@ -155,10 +157,12 @@ The `document` parameter is a map containing the following values:
|
|
|
155
157
|
|
|
156
158
|
- `pages`: an array of page objects. Each page object has:
|
|
157
159
|
- `imageUrl`: the URL of the image file for this page, e.g. `file://<filepath>.{jpeg|png}`
|
|
160
|
+
- `hocrTextLayout`: the text layout in hOCR format
|
|
158
161
|
|
|
159
162
|
The `configuration` parameter provides the following options:
|
|
160
163
|
|
|
161
164
|
- `outputFileUrl`: the URL where the document should be generated, e.g. `file://<filepath>.pdf`
|
|
165
|
+
- `pdfFontFileUrl`: Custom font file used during the PDF generation to embed an invisible text layer. If null, a default font is used, which only supports Latin languages.
|
|
162
166
|
|
|
163
167
|
|
|
164
168
|
## Usage with Ionic
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/cordova-plugin-genius-scan",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "Cordova Plugin for Genius Scan SDK",
|
|
5
5
|
"author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
|
|
6
6
|
"homepage": "https://geniusscansdk.com/",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="4.
|
|
2
|
+
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="4.10.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
3
|
<name>Genius Scan</name>
|
|
4
4
|
<js-module name="GeniusScan" src="www/GeniusScan.js">
|
|
5
5
|
<clobbers target="cordova.plugins.GeniusScan" />
|
|
@@ -9,13 +9,15 @@
|
|
|
9
9
|
<feature name="GeniusScan">
|
|
10
10
|
<param name="android-package" value="com.geniusscansdk.cordova.GeniusScan" />
|
|
11
11
|
</feature>
|
|
12
|
+
<!-- Needed until we can upgrade cordova-android to a version that supports API 33 (v12.0.0?) -->
|
|
13
|
+
<preference name="android-targetSdkVersion" value="33" />
|
|
14
|
+
<preference name="android-compileSdkVersion" value="33" />
|
|
12
15
|
</config-file>
|
|
13
|
-
<config-file parent="/manifest/application" target="AndroidManifest.xml"
|
|
14
|
-
</config-file>
|
|
16
|
+
<config-file parent="/manifest/application" target="AndroidManifest.xml" />
|
|
15
17
|
<source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
|
|
16
18
|
<framework custom="true" src="src/android/build.gradle" type="gradleReference" />
|
|
17
|
-
<framework src="com.geniusscansdk:gssdk-scanflow:4.
|
|
18
|
-
<framework src="com.geniusscansdk:gssdk-ocr:4.
|
|
19
|
+
<framework src="com.geniusscansdk:gssdk-scanflow:4.10.0"/>
|
|
20
|
+
<framework src="com.geniusscansdk:gssdk-ocr:4.10.0"/>
|
|
19
21
|
</platform>
|
|
20
22
|
|
|
21
23
|
<platform name="ios">
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>GSSDKCore.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
15
|
</array>
|
|
17
16
|
<key>SupportedPlatform</key>
|
|
18
17
|
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
18
|
</dict>
|
|
22
19
|
<dict>
|
|
23
20
|
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>ios-
|
|
21
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
25
22
|
<key>LibraryPath</key>
|
|
26
23
|
<string>GSSDKCore.framework</string>
|
|
27
24
|
<key>SupportedArchitectures</key>
|
|
28
25
|
<array>
|
|
29
26
|
<string>arm64</string>
|
|
27
|
+
<string>x86_64</string>
|
|
30
28
|
</array>
|
|
31
29
|
<key>SupportedPlatform</key>
|
|
32
30
|
<string>ios</string>
|
|
31
|
+
<key>SupportedPlatformVariant</key>
|
|
32
|
+
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
</array>
|
|
35
35
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -62,6 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
62
62
|
*/
|
|
63
63
|
+ (BOOL)generatePDFDocument:(GSKPDFDocument *)document
|
|
64
64
|
toPath:(NSString *)filePath
|
|
65
|
+
withConfiguration:(GSKPDFGeneratorConfiguration *)configuration
|
|
65
66
|
withImageProcessor:(_Nullable id<GSKPDFImageProcessor>)processor
|
|
66
67
|
error:(NSError * _Nullable *)error;
|
|
67
68
|
|
package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKLogger.h
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
-
// This file generated by Djinni from sdk-core.djinni
|
|
2
|
+
// This file was generated by Djinni from sdk-core.djinni
|
|
3
3
|
|
|
4
4
|
#import "GSKLoggerSeverity.h"
|
|
5
5
|
#import <Foundation/Foundation.h>
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
/** A interface for a logger object. Implement this to inject your own logger or use the default logger available in the SDK. */
|
|
9
|
-
@protocol GSKLogger
|
|
9
|
+
@protocol GSKLogger <NSObject>
|
|
10
10
|
|
|
11
11
|
- (void)log:(nonnull NSString *)message
|
|
12
12
|
severity:(GSKLoggerSeverity)severity;
|
package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSKPDFDocument.h
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
-
// This file generated by Djinni from sdk-pdf.djinni
|
|
2
|
+
// This file was generated by Djinni from sdk-pdf.djinni
|
|
3
3
|
|
|
4
4
|
#import "GSKPDFPage.h"
|
|
5
5
|
#import <Foundation/Foundation.h>
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
Describes the structure of a document for the document generator.
|
|
9
|
-
|
|
10
|
-
For historical reasons, this refers to PDF but this may also be used when generating a TIFF document.
|
|
11
|
-
This class may be renamed in a future version of the SDK.
|
|
12
|
-
*/
|
|
7
|
+
/** Describes the structure of a PDF document for the PDF generator. */
|
|
13
8
|
@interface GSKPDFDocument : NSObject
|
|
14
|
-
|
|
15
|
-
- (nonnull instancetype)init NS_UNAVAILABLE;
|
|
16
|
-
|
|
17
9
|
- (nonnull instancetype)initWithTitle:(nullable NSString *)title
|
|
18
10
|
password:(nullable NSString *)password
|
|
19
11
|
keywords:(nullable NSString *)keywords
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
+
// This file was generated by Djinni from sdk-pdf.djinni
|
|
3
|
+
|
|
4
|
+
#import <Foundation/Foundation.h>
|
|
5
|
+
|
|
6
|
+
/** A configuration for the PDF generator */
|
|
7
|
+
@interface GSKPDFGeneratorConfiguration : NSObject
|
|
8
|
+
- (nonnull instancetype)initWithFontPath:(nullable NSString *)fontPath
|
|
9
|
+
debug:(BOOL)debug;
|
|
10
|
+
+ (nonnull instancetype)PDFGeneratorConfigurationWithFontPath:(nullable NSString *)fontPath
|
|
11
|
+
debug:(BOOL)debug;
|
|
12
|
+
|
|
13
|
+
@property (nonatomic, readonly, nullable) NSString * fontPath;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* If true, OCR'ed text will visible on the PDF.
|
|
17
|
+
* Defaults to false
|
|
18
|
+
*/
|
|
19
|
+
@property (nonatomic, readonly) BOOL debug;
|
|
20
|
+
|
|
21
|
+
@end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
-
// This file generated by Djinni from sdk-pdf.djinni
|
|
2
|
+
// This file was generated by Djinni from sdk-pdf.djinni
|
|
3
3
|
|
|
4
4
|
#import <Foundation/Foundation.h>
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* implement your own PDF_image_processor and pass it when generating a PDF document.
|
|
13
13
|
* to achieve this.
|
|
14
14
|
*/
|
|
15
|
-
@protocol GSKPDFImageProcessor
|
|
15
|
+
@protocol GSKPDFImageProcessor <NSObject>
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Process the image and return a file path to the
|
package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Headers/GSSDKCore-Swift.h
CHANGED
|
@@ -271,7 +271,10 @@ SWIFT_CLASS("_TtC9GSSDKCore33GSKDocumentGeneratorConfiguration")
|
|
|
271
271
|
@interface GSKDocumentGeneratorConfiguration : NSObject
|
|
272
272
|
/// The path where the generated document will be written
|
|
273
273
|
@property (nonatomic, readonly, copy) NSString * _Nonnull outputFilePath;
|
|
274
|
-
|
|
274
|
+
/// Custom font file used during the PDF generation to embed an invisible text layer.
|
|
275
|
+
/// If nil, a default font is used, which only supports Latin languages.
|
|
276
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable pdfFontFilePath;
|
|
277
|
+
- (nonnull instancetype)initWithOutputFilePath:(NSString * _Nonnull)outputFilePath pdfFontFilePath:(NSString * _Nullable)pdfFontFilePath OBJC_DESIGNATED_INITIALIZER;
|
|
275
278
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
276
279
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
277
280
|
@end
|
|
Binary file
|
|
@@ -223,10 +223,77 @@
|
|
|
223
223
|
}
|
|
224
224
|
]
|
|
225
225
|
},
|
|
226
|
+
{
|
|
227
|
+
"kind": "Var",
|
|
228
|
+
"name": "pdfFontFilePath",
|
|
229
|
+
"printedName": "pdfFontFilePath",
|
|
230
|
+
"children": [
|
|
231
|
+
{
|
|
232
|
+
"kind": "TypeNominal",
|
|
233
|
+
"name": "Optional",
|
|
234
|
+
"printedName": "Swift.String?",
|
|
235
|
+
"children": [
|
|
236
|
+
{
|
|
237
|
+
"kind": "TypeNominal",
|
|
238
|
+
"name": "String",
|
|
239
|
+
"printedName": "Swift.String",
|
|
240
|
+
"usr": "s:SS"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"usr": "s:Sq"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"declKind": "Var",
|
|
247
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(py)pdfFontFilePath",
|
|
248
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC15pdfFontFilePathSSSgvp",
|
|
249
|
+
"moduleName": "GSSDKCore",
|
|
250
|
+
"declAttributes": [
|
|
251
|
+
"Final",
|
|
252
|
+
"HasStorage",
|
|
253
|
+
"AccessControl",
|
|
254
|
+
"ObjC",
|
|
255
|
+
"RawDocComment"
|
|
256
|
+
],
|
|
257
|
+
"isLet": true,
|
|
258
|
+
"hasStorage": true,
|
|
259
|
+
"accessors": [
|
|
260
|
+
{
|
|
261
|
+
"kind": "Accessor",
|
|
262
|
+
"name": "Get",
|
|
263
|
+
"printedName": "Get()",
|
|
264
|
+
"children": [
|
|
265
|
+
{
|
|
266
|
+
"kind": "TypeNominal",
|
|
267
|
+
"name": "Optional",
|
|
268
|
+
"printedName": "Swift.String?",
|
|
269
|
+
"children": [
|
|
270
|
+
{
|
|
271
|
+
"kind": "TypeNominal",
|
|
272
|
+
"name": "String",
|
|
273
|
+
"printedName": "Swift.String",
|
|
274
|
+
"usr": "s:SS"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"usr": "s:Sq"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"declKind": "Accessor",
|
|
281
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)pdfFontFilePath",
|
|
282
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC15pdfFontFilePathSSSgvg",
|
|
283
|
+
"moduleName": "GSSDKCore",
|
|
284
|
+
"implicit": true,
|
|
285
|
+
"declAttributes": [
|
|
286
|
+
"Final",
|
|
287
|
+
"ObjC"
|
|
288
|
+
],
|
|
289
|
+
"accessorKind": "get"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
226
293
|
{
|
|
227
294
|
"kind": "Constructor",
|
|
228
295
|
"name": "init",
|
|
229
|
-
"printedName": "init(outputFilePath:)",
|
|
296
|
+
"printedName": "init(outputFilePath:pdfFontFilePath:)",
|
|
230
297
|
"children": [
|
|
231
298
|
{
|
|
232
299
|
"kind": "TypeNominal",
|
|
@@ -239,13 +306,28 @@
|
|
|
239
306
|
"name": "String",
|
|
240
307
|
"printedName": "Swift.String",
|
|
241
308
|
"usr": "s:SS"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"kind": "TypeNominal",
|
|
312
|
+
"name": "Optional",
|
|
313
|
+
"printedName": "Swift.String?",
|
|
314
|
+
"children": [
|
|
315
|
+
{
|
|
316
|
+
"kind": "TypeNominal",
|
|
317
|
+
"name": "String",
|
|
318
|
+
"printedName": "Swift.String",
|
|
319
|
+
"usr": "s:SS"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"hasDefaultArg": true,
|
|
323
|
+
"usr": "s:Sq"
|
|
242
324
|
}
|
|
243
325
|
],
|
|
244
326
|
"declKind": "Constructor",
|
|
245
|
-
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)initWithOutputFilePath:",
|
|
246
|
-
"mangledName": "$
|
|
327
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)initWithOutputFilePath:pdfFontFilePath:",
|
|
328
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC14outputFilePath07pdfFontfG0ACSS_SSSgtcfc",
|
|
247
329
|
"moduleName": "GSSDKCore",
|
|
248
|
-
"objc_name": "initWithOutputFilePath:",
|
|
330
|
+
"objc_name": "initWithOutputFilePath:pdfFontFilePath:",
|
|
249
331
|
"declAttributes": [
|
|
250
332
|
"AccessControl",
|
|
251
333
|
"ObjC"
|
|
@@ -17,7 +17,8 @@ extension GSSDKCore.GSKPDFDocument {
|
|
|
17
17
|
}
|
|
18
18
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
19
19
|
@objc final public let outputFilePath: Swift.String
|
|
20
|
-
@objc public
|
|
20
|
+
@objc final public let pdfFontFilePath: Swift.String?
|
|
21
|
+
@objc public init(outputFilePath: Swift.String, pdfFontFilePath: Swift.String? = nil)
|
|
21
22
|
@objc deinit
|
|
22
23
|
}
|
|
23
24
|
extension GSSDKCore.GSKDocumentGeneratorConfiguration {
|
|
Binary file
|
|
@@ -17,7 +17,8 @@ extension GSSDKCore.GSKPDFDocument {
|
|
|
17
17
|
}
|
|
18
18
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
19
19
|
@objc final public let outputFilePath: Swift.String
|
|
20
|
-
@objc public
|
|
20
|
+
@objc final public let pdfFontFilePath: Swift.String?
|
|
21
|
+
@objc public init(outputFilePath: Swift.String, pdfFontFilePath: Swift.String? = nil)
|
|
21
22
|
@objc deinit
|
|
22
23
|
}
|
|
23
24
|
extension GSSDKCore.GSKDocumentGeneratorConfiguration {
|
|
Binary file
|
package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/GSSDKCore
CHANGED
|
Binary file
|
|
@@ -62,6 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
62
62
|
*/
|
|
63
63
|
+ (BOOL)generatePDFDocument:(GSKPDFDocument *)document
|
|
64
64
|
toPath:(NSString *)filePath
|
|
65
|
+
withConfiguration:(GSKPDFGeneratorConfiguration *)configuration
|
|
65
66
|
withImageProcessor:(_Nullable id<GSKPDFImageProcessor>)processor
|
|
66
67
|
error:(NSError * _Nullable *)error;
|
|
67
68
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
-
// This file generated by Djinni from sdk-core.djinni
|
|
2
|
+
// This file was generated by Djinni from sdk-core.djinni
|
|
3
3
|
|
|
4
4
|
#import "GSKLoggerSeverity.h"
|
|
5
5
|
#import <Foundation/Foundation.h>
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
/** A interface for a logger object. Implement this to inject your own logger or use the default logger available in the SDK. */
|
|
9
|
-
@protocol GSKLogger
|
|
9
|
+
@protocol GSKLogger <NSObject>
|
|
10
10
|
|
|
11
11
|
- (void)log:(nonnull NSString *)message
|
|
12
12
|
severity:(GSKLoggerSeverity)severity;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
-
// This file generated by Djinni from sdk-pdf.djinni
|
|
2
|
+
// This file was generated by Djinni from sdk-pdf.djinni
|
|
3
3
|
|
|
4
4
|
#import "GSKPDFPage.h"
|
|
5
5
|
#import <Foundation/Foundation.h>
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
Describes the structure of a document for the document generator.
|
|
9
|
-
|
|
10
|
-
For historical reasons, this refers to PDF but this may also be used when generating a TIFF document.
|
|
11
|
-
This class may be renamed in a future version of the SDK.
|
|
12
|
-
*/
|
|
7
|
+
/** Describes the structure of a PDF document for the PDF generator. */
|
|
13
8
|
@interface GSKPDFDocument : NSObject
|
|
14
|
-
|
|
15
|
-
- (nonnull instancetype)init NS_UNAVAILABLE;
|
|
16
|
-
|
|
17
9
|
- (nonnull instancetype)initWithTitle:(nullable NSString *)title
|
|
18
10
|
password:(nullable NSString *)password
|
|
19
11
|
keywords:(nullable NSString *)keywords
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
+
// This file was generated by Djinni from sdk-pdf.djinni
|
|
3
|
+
|
|
4
|
+
#import <Foundation/Foundation.h>
|
|
5
|
+
|
|
6
|
+
/** A configuration for the PDF generator */
|
|
7
|
+
@interface GSKPDFGeneratorConfiguration : NSObject
|
|
8
|
+
- (nonnull instancetype)initWithFontPath:(nullable NSString *)fontPath
|
|
9
|
+
debug:(BOOL)debug;
|
|
10
|
+
+ (nonnull instancetype)PDFGeneratorConfigurationWithFontPath:(nullable NSString *)fontPath
|
|
11
|
+
debug:(BOOL)debug;
|
|
12
|
+
|
|
13
|
+
@property (nonatomic, readonly, nullable) NSString * fontPath;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* If true, OCR'ed text will visible on the PDF.
|
|
17
|
+
* Defaults to false
|
|
18
|
+
*/
|
|
19
|
+
@property (nonatomic, readonly) BOOL debug;
|
|
20
|
+
|
|
21
|
+
@end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// AUTOGENERATED FILE - DO NOT MODIFY!
|
|
2
|
-
// This file generated by Djinni from sdk-pdf.djinni
|
|
2
|
+
// This file was generated by Djinni from sdk-pdf.djinni
|
|
3
3
|
|
|
4
4
|
#import <Foundation/Foundation.h>
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* implement your own PDF_image_processor and pass it when generating a PDF document.
|
|
13
13
|
* to achieve this.
|
|
14
14
|
*/
|
|
15
|
-
@protocol GSKPDFImageProcessor
|
|
15
|
+
@protocol GSKPDFImageProcessor <NSObject>
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Process the image and return a file path to the
|
|
@@ -271,7 +271,10 @@ SWIFT_CLASS("_TtC9GSSDKCore33GSKDocumentGeneratorConfiguration")
|
|
|
271
271
|
@interface GSKDocumentGeneratorConfiguration : NSObject
|
|
272
272
|
/// The path where the generated document will be written
|
|
273
273
|
@property (nonatomic, readonly, copy) NSString * _Nonnull outputFilePath;
|
|
274
|
-
|
|
274
|
+
/// Custom font file used during the PDF generation to embed an invisible text layer.
|
|
275
|
+
/// If nil, a default font is used, which only supports Latin languages.
|
|
276
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable pdfFontFilePath;
|
|
277
|
+
- (nonnull instancetype)initWithOutputFilePath:(NSString * _Nonnull)outputFilePath pdfFontFilePath:(NSString * _Nullable)pdfFontFilePath OBJC_DESIGNATED_INITIALIZER;
|
|
275
278
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
276
279
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
277
280
|
@end
|
|
@@ -567,7 +570,10 @@ SWIFT_CLASS("_TtC9GSSDKCore33GSKDocumentGeneratorConfiguration")
|
|
|
567
570
|
@interface GSKDocumentGeneratorConfiguration : NSObject
|
|
568
571
|
/// The path where the generated document will be written
|
|
569
572
|
@property (nonatomic, readonly, copy) NSString * _Nonnull outputFilePath;
|
|
570
|
-
|
|
573
|
+
/// Custom font file used during the PDF generation to embed an invisible text layer.
|
|
574
|
+
/// If nil, a default font is used, which only supports Latin languages.
|
|
575
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable pdfFontFilePath;
|
|
576
|
+
- (nonnull instancetype)initWithOutputFilePath:(NSString * _Nonnull)outputFilePath pdfFontFilePath:(NSString * _Nullable)pdfFontFilePath OBJC_DESIGNATED_INITIALIZER;
|
|
571
577
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
572
578
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
573
579
|
@end
|
|
Binary file
|
|
@@ -223,10 +223,77 @@
|
|
|
223
223
|
}
|
|
224
224
|
]
|
|
225
225
|
},
|
|
226
|
+
{
|
|
227
|
+
"kind": "Var",
|
|
228
|
+
"name": "pdfFontFilePath",
|
|
229
|
+
"printedName": "pdfFontFilePath",
|
|
230
|
+
"children": [
|
|
231
|
+
{
|
|
232
|
+
"kind": "TypeNominal",
|
|
233
|
+
"name": "Optional",
|
|
234
|
+
"printedName": "Swift.String?",
|
|
235
|
+
"children": [
|
|
236
|
+
{
|
|
237
|
+
"kind": "TypeNominal",
|
|
238
|
+
"name": "String",
|
|
239
|
+
"printedName": "Swift.String",
|
|
240
|
+
"usr": "s:SS"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"usr": "s:Sq"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"declKind": "Var",
|
|
247
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(py)pdfFontFilePath",
|
|
248
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC15pdfFontFilePathSSSgvp",
|
|
249
|
+
"moduleName": "GSSDKCore",
|
|
250
|
+
"declAttributes": [
|
|
251
|
+
"Final",
|
|
252
|
+
"HasStorage",
|
|
253
|
+
"AccessControl",
|
|
254
|
+
"ObjC",
|
|
255
|
+
"RawDocComment"
|
|
256
|
+
],
|
|
257
|
+
"isLet": true,
|
|
258
|
+
"hasStorage": true,
|
|
259
|
+
"accessors": [
|
|
260
|
+
{
|
|
261
|
+
"kind": "Accessor",
|
|
262
|
+
"name": "Get",
|
|
263
|
+
"printedName": "Get()",
|
|
264
|
+
"children": [
|
|
265
|
+
{
|
|
266
|
+
"kind": "TypeNominal",
|
|
267
|
+
"name": "Optional",
|
|
268
|
+
"printedName": "Swift.String?",
|
|
269
|
+
"children": [
|
|
270
|
+
{
|
|
271
|
+
"kind": "TypeNominal",
|
|
272
|
+
"name": "String",
|
|
273
|
+
"printedName": "Swift.String",
|
|
274
|
+
"usr": "s:SS"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"usr": "s:Sq"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"declKind": "Accessor",
|
|
281
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)pdfFontFilePath",
|
|
282
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC15pdfFontFilePathSSSgvg",
|
|
283
|
+
"moduleName": "GSSDKCore",
|
|
284
|
+
"implicit": true,
|
|
285
|
+
"declAttributes": [
|
|
286
|
+
"Final",
|
|
287
|
+
"ObjC"
|
|
288
|
+
],
|
|
289
|
+
"accessorKind": "get"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
226
293
|
{
|
|
227
294
|
"kind": "Constructor",
|
|
228
295
|
"name": "init",
|
|
229
|
-
"printedName": "init(outputFilePath:)",
|
|
296
|
+
"printedName": "init(outputFilePath:pdfFontFilePath:)",
|
|
230
297
|
"children": [
|
|
231
298
|
{
|
|
232
299
|
"kind": "TypeNominal",
|
|
@@ -239,13 +306,28 @@
|
|
|
239
306
|
"name": "String",
|
|
240
307
|
"printedName": "Swift.String",
|
|
241
308
|
"usr": "s:SS"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"kind": "TypeNominal",
|
|
312
|
+
"name": "Optional",
|
|
313
|
+
"printedName": "Swift.String?",
|
|
314
|
+
"children": [
|
|
315
|
+
{
|
|
316
|
+
"kind": "TypeNominal",
|
|
317
|
+
"name": "String",
|
|
318
|
+
"printedName": "Swift.String",
|
|
319
|
+
"usr": "s:SS"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"hasDefaultArg": true,
|
|
323
|
+
"usr": "s:Sq"
|
|
242
324
|
}
|
|
243
325
|
],
|
|
244
326
|
"declKind": "Constructor",
|
|
245
|
-
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)initWithOutputFilePath:",
|
|
246
|
-
"mangledName": "$
|
|
327
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)initWithOutputFilePath:pdfFontFilePath:",
|
|
328
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC14outputFilePath07pdfFontfG0ACSS_SSSgtcfc",
|
|
247
329
|
"moduleName": "GSSDKCore",
|
|
248
|
-
"objc_name": "initWithOutputFilePath:",
|
|
330
|
+
"objc_name": "initWithOutputFilePath:pdfFontFilePath:",
|
|
249
331
|
"declAttributes": [
|
|
250
332
|
"AccessControl",
|
|
251
333
|
"ObjC"
|
|
@@ -17,7 +17,8 @@ extension GSSDKCore.GSKPDFDocument {
|
|
|
17
17
|
}
|
|
18
18
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
19
19
|
@objc final public let outputFilePath: Swift.String
|
|
20
|
-
@objc public
|
|
20
|
+
@objc final public let pdfFontFilePath: Swift.String?
|
|
21
|
+
@objc public init(outputFilePath: Swift.String, pdfFontFilePath: Swift.String? = nil)
|
|
21
22
|
@objc deinit
|
|
22
23
|
}
|
|
23
24
|
extension GSSDKCore.GSKDocumentGeneratorConfiguration {
|
|
Binary file
|
|
@@ -17,7 +17,8 @@ extension GSSDKCore.GSKPDFDocument {
|
|
|
17
17
|
}
|
|
18
18
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
19
19
|
@objc final public let outputFilePath: Swift.String
|
|
20
|
-
@objc public
|
|
20
|
+
@objc final public let pdfFontFilePath: Swift.String?
|
|
21
|
+
@objc public init(outputFilePath: Swift.String, pdfFontFilePath: Swift.String? = nil)
|
|
21
22
|
@objc deinit
|
|
22
23
|
}
|
|
23
24
|
extension GSSDKCore.GSKDocumentGeneratorConfiguration {
|
|
@@ -223,10 +223,77 @@
|
|
|
223
223
|
}
|
|
224
224
|
]
|
|
225
225
|
},
|
|
226
|
+
{
|
|
227
|
+
"kind": "Var",
|
|
228
|
+
"name": "pdfFontFilePath",
|
|
229
|
+
"printedName": "pdfFontFilePath",
|
|
230
|
+
"children": [
|
|
231
|
+
{
|
|
232
|
+
"kind": "TypeNominal",
|
|
233
|
+
"name": "Optional",
|
|
234
|
+
"printedName": "Swift.String?",
|
|
235
|
+
"children": [
|
|
236
|
+
{
|
|
237
|
+
"kind": "TypeNominal",
|
|
238
|
+
"name": "String",
|
|
239
|
+
"printedName": "Swift.String",
|
|
240
|
+
"usr": "s:SS"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"usr": "s:Sq"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"declKind": "Var",
|
|
247
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(py)pdfFontFilePath",
|
|
248
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC15pdfFontFilePathSSSgvp",
|
|
249
|
+
"moduleName": "GSSDKCore",
|
|
250
|
+
"declAttributes": [
|
|
251
|
+
"Final",
|
|
252
|
+
"HasStorage",
|
|
253
|
+
"AccessControl",
|
|
254
|
+
"ObjC",
|
|
255
|
+
"RawDocComment"
|
|
256
|
+
],
|
|
257
|
+
"isLet": true,
|
|
258
|
+
"hasStorage": true,
|
|
259
|
+
"accessors": [
|
|
260
|
+
{
|
|
261
|
+
"kind": "Accessor",
|
|
262
|
+
"name": "Get",
|
|
263
|
+
"printedName": "Get()",
|
|
264
|
+
"children": [
|
|
265
|
+
{
|
|
266
|
+
"kind": "TypeNominal",
|
|
267
|
+
"name": "Optional",
|
|
268
|
+
"printedName": "Swift.String?",
|
|
269
|
+
"children": [
|
|
270
|
+
{
|
|
271
|
+
"kind": "TypeNominal",
|
|
272
|
+
"name": "String",
|
|
273
|
+
"printedName": "Swift.String",
|
|
274
|
+
"usr": "s:SS"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"usr": "s:Sq"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"declKind": "Accessor",
|
|
281
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)pdfFontFilePath",
|
|
282
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC15pdfFontFilePathSSSgvg",
|
|
283
|
+
"moduleName": "GSSDKCore",
|
|
284
|
+
"implicit": true,
|
|
285
|
+
"declAttributes": [
|
|
286
|
+
"Final",
|
|
287
|
+
"ObjC"
|
|
288
|
+
],
|
|
289
|
+
"accessorKind": "get"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
226
293
|
{
|
|
227
294
|
"kind": "Constructor",
|
|
228
295
|
"name": "init",
|
|
229
|
-
"printedName": "init(outputFilePath:)",
|
|
296
|
+
"printedName": "init(outputFilePath:pdfFontFilePath:)",
|
|
230
297
|
"children": [
|
|
231
298
|
{
|
|
232
299
|
"kind": "TypeNominal",
|
|
@@ -239,13 +306,28 @@
|
|
|
239
306
|
"name": "String",
|
|
240
307
|
"printedName": "Swift.String",
|
|
241
308
|
"usr": "s:SS"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"kind": "TypeNominal",
|
|
312
|
+
"name": "Optional",
|
|
313
|
+
"printedName": "Swift.String?",
|
|
314
|
+
"children": [
|
|
315
|
+
{
|
|
316
|
+
"kind": "TypeNominal",
|
|
317
|
+
"name": "String",
|
|
318
|
+
"printedName": "Swift.String",
|
|
319
|
+
"usr": "s:SS"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"hasDefaultArg": true,
|
|
323
|
+
"usr": "s:Sq"
|
|
242
324
|
}
|
|
243
325
|
],
|
|
244
326
|
"declKind": "Constructor",
|
|
245
|
-
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)initWithOutputFilePath:",
|
|
246
|
-
"mangledName": "$
|
|
327
|
+
"usr": "c:@M@GSSDKCore@objc(cs)GSKDocumentGeneratorConfiguration(im)initWithOutputFilePath:pdfFontFilePath:",
|
|
328
|
+
"mangledName": "$s9GSSDKCore33GSKDocumentGeneratorConfigurationC14outputFilePath07pdfFontfG0ACSS_SSSgtcfc",
|
|
247
329
|
"moduleName": "GSSDKCore",
|
|
248
|
-
"objc_name": "initWithOutputFilePath:",
|
|
330
|
+
"objc_name": "initWithOutputFilePath:pdfFontFilePath:",
|
|
249
331
|
"declAttributes": [
|
|
250
332
|
"AccessControl",
|
|
251
333
|
"ObjC"
|
|
@@ -17,7 +17,8 @@ extension GSSDKCore.GSKPDFDocument {
|
|
|
17
17
|
}
|
|
18
18
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
19
19
|
@objc final public let outputFilePath: Swift.String
|
|
20
|
-
@objc public
|
|
20
|
+
@objc final public let pdfFontFilePath: Swift.String?
|
|
21
|
+
@objc public init(outputFilePath: Swift.String, pdfFontFilePath: Swift.String? = nil)
|
|
21
22
|
@objc deinit
|
|
22
23
|
}
|
|
23
24
|
extension GSSDKCore.GSKDocumentGeneratorConfiguration {
|
|
Binary file
|
|
@@ -17,7 +17,8 @@ extension GSSDKCore.GSKPDFDocument {
|
|
|
17
17
|
}
|
|
18
18
|
@objc public class GSKDocumentGeneratorConfiguration : ObjectiveC.NSObject {
|
|
19
19
|
@objc final public let outputFilePath: Swift.String
|
|
20
|
-
@objc public
|
|
20
|
+
@objc final public let pdfFontFilePath: Swift.String?
|
|
21
|
+
@objc public init(outputFilePath: Swift.String, pdfFontFilePath: Swift.String? = nil)
|
|
21
22
|
@objc deinit
|
|
22
23
|
}
|
|
23
24
|
extension GSSDKCore.GSKDocumentGeneratorConfiguration {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/GSSDKOCR
CHANGED
|
Binary file
|
package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>GSSDKScanFlow.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
+
<string>x86_64</string>
|
|
15
16
|
</array>
|
|
16
17
|
<key>SupportedPlatform</key>
|
|
17
18
|
<string>ios</string>
|
|
19
|
+
<key>SupportedPlatformVariant</key>
|
|
20
|
+
<string>simulator</string>
|
|
18
21
|
</dict>
|
|
19
22
|
<dict>
|
|
20
23
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-
|
|
24
|
+
<string>ios-arm64</string>
|
|
22
25
|
<key>LibraryPath</key>
|
|
23
26
|
<string>GSSDKScanFlow.framework</string>
|
|
24
27
|
<key>SupportedArchitectures</key>
|
|
25
28
|
<array>
|
|
26
29
|
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
30
|
</array>
|
|
29
31
|
<key>SupportedPlatform</key>
|
|
30
32
|
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
</array>
|
|
35
35
|
<key>CFBundlePackageType</key>
|
package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/GSSDKScanFlow
CHANGED
|
Binary file
|
|
@@ -174,6 +174,13 @@ typedef NS_ENUM(NSUInteger, GSKScanFlowMultiPageFormat) {
|
|
|
174
174
|
*/
|
|
175
175
|
@property (nonatomic, assign) GSKScanFlowMultiPageFormat multiPageFormat;
|
|
176
176
|
|
|
177
|
+
/**
|
|
178
|
+
Custom font file used during the PDF generation to embed an invisible text layer.
|
|
179
|
+
|
|
180
|
+
If nil, a default font is used, which only supports Latin languages.
|
|
181
|
+
*/
|
|
182
|
+
@property (nonatomic, strong) NSURL *pdfFontFileURL;
|
|
183
|
+
|
|
177
184
|
/**
|
|
178
185
|
UI background color.
|
|
179
186
|
|
package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -174,6 +174,13 @@ typedef NS_ENUM(NSUInteger, GSKScanFlowMultiPageFormat) {
|
|
|
174
174
|
*/
|
|
175
175
|
@property (nonatomic, assign) GSKScanFlowMultiPageFormat multiPageFormat;
|
|
176
176
|
|
|
177
|
+
/**
|
|
178
|
+
Custom font file used during the PDF generation to embed an invisible text layer.
|
|
179
|
+
|
|
180
|
+
If nil, a default font is used, which only supports Latin languages.
|
|
181
|
+
*/
|
|
182
|
+
@property (nonatomic, strong) NSURL *pdfFontFileURL;
|
|
183
|
+
|
|
177
184
|
/**
|
|
178
185
|
UI background color.
|
|
179
186
|
|
|
Binary file
|