|
| 1 | +// @TODO: JNI_TRUE == use_crop_box) |
1 | 2 | /* |
2 | 3 | * pdf2htmlEX.cc |
3 | 4 | * |
@@ -102,48 +103,372 @@ Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setUserPassword(JNIEn |
102 | 103 |
|
103 | 104 | extern "C" |
104 | 105 | JNIEXPORT void JNICALL |
105 | | -Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setOutline(JNIEnv *env, jclass, jlong converter, |
106 | | - jobject enable) { |
| 106 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setProcessOutline(JNIEnv *, jclass, jlong converter, |
| 107 | + jboolean process) { |
107 | 108 | auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
108 | | - pdf2htmlEX->setProcessOutline(enable); |
| 109 | + pdf2htmlEX->setProcessOutline(JNI_TRUE == process); |
109 | 110 | } |
110 | 111 |
|
111 | 112 | extern "C" |
112 | 113 | JNIEXPORT void JNICALL |
113 | | -Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setDrm(JNIEnv *env, jclass, jlong converter, |
114 | | - jobject enable) { |
| 114 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setDrm(JNIEnv *, jclass, jlong converter, |
| 115 | + jboolean enable) { |
115 | 116 | auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
116 | | - pdf2htmlEX->setDRM(enable); |
| 117 | + pdf2htmlEX->setDRM(JNI_TRUE == enable); |
117 | 118 | } |
118 | 119 |
|
119 | 120 | extern "C" |
120 | 121 | JNIEXPORT void JNICALL |
121 | 122 | Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setEmbedFont(JNIEnv *, jclass, jlong converter, |
122 | | - jobject embed) { |
| 123 | + jboolean embed) { |
123 | 124 | auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
124 | | - pdf2htmlEX->setEmbedFont(embed); |
| 125 | + pdf2htmlEX->setEmbedFont(JNI_TRUE == embed); |
125 | 126 | } |
126 | 127 |
|
127 | 128 | extern "C" |
128 | 129 | JNIEXPORT void JNICALL |
129 | 130 | Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setEmbedExternalFont(JNIEnv *, jclass, jlong converter, |
130 | | - jobject embed) { |
| 131 | + jboolean embed) { |
131 | 132 | auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
132 | | - pdf2htmlEX->setEmbedExternalFont(embed); |
| 133 | + pdf2htmlEX->setEmbedExternalFont(JNI_TRUE == embed); |
133 | 134 | } |
134 | 135 |
|
135 | 136 | extern "C" |
136 | 137 | JNIEXPORT void JNICALL |
137 | 138 | Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setProcessAnnotation(JNIEnv *, jclass, jlong converter, |
138 | | - jobject process) { |
| 139 | + jboolean process) { |
139 | 140 | auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
140 | | - pdf2htmlEX->setProcessAnnotation(process); |
| 141 | + pdf2htmlEX->setProcessAnnotation(JNI_TRUE == process); |
141 | 142 | } |
142 | 143 |
|
143 | 144 | extern "C" |
144 | 145 | JNIEXPORT void JNICALL |
145 | | -Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setBackgroundFormat(JNIEnv *env, jclass, jlong converter, |
| 146 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setBackgroundImageFormat(JNIEnv *env, jclass, jlong converter, |
146 | 147 | jstring background_format) { |
147 | 148 | auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
148 | 149 | pdf2htmlEX->setBackgroundImageFormat(CCharGC(env, background_format).c_str()); |
149 | 150 | } |
| 151 | + |
| 152 | +extern "C" |
| 153 | +JNIEXPORT void JNICALL |
| 154 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setFirstPage(JNIEnv *, jclass, |
| 155 | + jlong converter, |
| 156 | + jint first_page) { |
| 157 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 158 | + pdf2htmlEX->setFirstPage(first_page); |
| 159 | +} |
| 160 | + |
| 161 | +extern "C" |
| 162 | +JNIEXPORT void JNICALL |
| 163 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setLastPage(JNIEnv *, jclass, |
| 164 | + jlong converter, |
| 165 | + jint last_page) { |
| 166 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 167 | + pdf2htmlEX->setLastPage(last_page); |
| 168 | +} |
| 169 | + |
| 170 | +extern "C" |
| 171 | +JNIEXPORT void JNICALL |
| 172 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setZoomRatio(JNIEnv *, jclass, |
| 173 | + jlong converter, |
| 174 | + jdouble zoom_ratio) { |
| 175 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 176 | + pdf2htmlEX->setZoomRatio(zoom_ratio); |
| 177 | +} |
| 178 | + |
| 179 | +extern "C" |
| 180 | +JNIEXPORT void JNICALL |
| 181 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setFitWidth(JNIEnv *, jclass, |
| 182 | + jlong converter, |
| 183 | + jdouble fit_width) { |
| 184 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 185 | + pdf2htmlEX->setFitWidth(fit_width); |
| 186 | +} |
| 187 | + |
| 188 | +extern "C" |
| 189 | +JNIEXPORT void JNICALL |
| 190 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setFitHeight(JNIEnv *, jclass, |
| 191 | + jlong converter, |
| 192 | + jdouble fit_height) { |
| 193 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 194 | + pdf2htmlEX->setFitHeight(fit_height); |
| 195 | +} |
| 196 | + |
| 197 | +extern "C" |
| 198 | +JNIEXPORT void JNICALL |
| 199 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setUseCropBox(JNIEnv *, jclass, |
| 200 | + jlong converter, |
| 201 | + jboolean use_crop_box) { |
| 202 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 203 | + pdf2htmlEX->setUseCropBox(JNI_TRUE == use_crop_box); |
| 204 | +} |
| 205 | + |
| 206 | +extern "C" |
| 207 | +JNIEXPORT void JNICALL |
| 208 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setDPI(JNIEnv *, jclass, |
| 209 | + jlong converter, |
| 210 | + jdouble desired_dpi) { |
| 211 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 212 | + pdf2htmlEX->setDPI(desired_dpi); |
| 213 | +} |
| 214 | + |
| 215 | +extern "C" |
| 216 | +JNIEXPORT void JNICALL |
| 217 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setEmbedCSS(JNIEnv *, jclass, |
| 218 | + jlong converter, |
| 219 | + jboolean embed_css) { |
| 220 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 221 | + pdf2htmlEX->setEmbedCSS(JNI_TRUE == embed_css); |
| 222 | +} |
| 223 | + |
| 224 | +extern "C" |
| 225 | +JNIEXPORT void JNICALL |
| 226 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setEmbedImage(JNIEnv *, jclass, |
| 227 | + jlong converter, |
| 228 | + jboolean embed_image) { |
| 229 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 230 | + pdf2htmlEX->setEmbedImage(JNI_TRUE == embed_image); |
| 231 | +} |
| 232 | + |
| 233 | +extern "C" |
| 234 | +JNIEXPORT void JNICALL |
| 235 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setEmbedJavascript(JNIEnv *, jclass, |
| 236 | + jlong converter, |
| 237 | + jboolean embed_javascript) { |
| 238 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 239 | + pdf2htmlEX->setEmbedJavascript(JNI_TRUE == embed_javascript); |
| 240 | +} |
| 241 | + |
| 242 | +extern "C" |
| 243 | +JNIEXPORT void JNICALL |
| 244 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setEmbedOutline(JNIEnv *, jclass, |
| 245 | + jlong converter, |
| 246 | + jboolean embed_outline) { |
| 247 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 248 | + pdf2htmlEX->setEmbedOutline(JNI_TRUE == embed_outline); |
| 249 | +} |
| 250 | + |
| 251 | +extern "C" |
| 252 | +JNIEXPORT void JNICALL |
| 253 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setSplitPages(JNIEnv *, jclass, |
| 254 | + jlong converter, |
| 255 | + jboolean split_pages) { |
| 256 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 257 | + pdf2htmlEX->setSplitPages(JNI_TRUE == split_pages); |
| 258 | +} |
| 259 | + |
| 260 | +extern "C" |
| 261 | +JNIEXPORT void JNICALL |
| 262 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setProcessNonText(JNIEnv *, jclass, |
| 263 | + jlong converter, |
| 264 | + jboolean process_non_text) { |
| 265 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 266 | + pdf2htmlEX->setProcessNonText(JNI_TRUE == process_non_text); |
| 267 | +} |
| 268 | + |
| 269 | +extern "C" |
| 270 | +JNIEXPORT void JNICALL |
| 271 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setProcessForm(JNIEnv *, jclass, |
| 272 | + jlong converter, |
| 273 | + jboolean process_form) { |
| 274 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 275 | + pdf2htmlEX->setProcessForm(JNI_TRUE == process_form); |
| 276 | +} |
| 277 | + |
| 278 | +extern "C" |
| 279 | +JNIEXPORT void JNICALL |
| 280 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setPrinting(JNIEnv *, jclass, |
| 281 | + jlong converter, |
| 282 | + jboolean printing) { |
| 283 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 284 | + pdf2htmlEX->setPrinting(JNI_TRUE == printing); |
| 285 | +} |
| 286 | + |
| 287 | +extern "C" |
| 288 | +JNIEXPORT void JNICALL |
| 289 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setFallback(JNIEnv *, jclass, |
| 290 | + jlong converter, |
| 291 | + jboolean fallback) { |
| 292 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 293 | + pdf2htmlEX->setFallback(JNI_TRUE == fallback); |
| 294 | +} |
| 295 | + |
| 296 | +extern "C" |
| 297 | +JNIEXPORT void JNICALL |
| 298 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setFontFormat(JNIEnv *env, jclass, |
| 299 | + jlong converter, |
| 300 | + jstring font_format) { |
| 301 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 302 | + pdf2htmlEX->setFontFormat(CCharGC(env, font_format).c_str()); |
| 303 | +} |
| 304 | + |
| 305 | +extern "C" |
| 306 | +JNIEXPORT void JNICALL |
| 307 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setDecomposeLigature(JNIEnv *, jclass, |
| 308 | + jlong converter, |
| 309 | + jboolean decompose_ligature) { |
| 310 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 311 | + pdf2htmlEX->setDecomposeLigature(JNI_TRUE == decompose_ligature); |
| 312 | +} |
| 313 | + |
| 314 | +extern "C" |
| 315 | +JNIEXPORT void JNICALL |
| 316 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setAutoHint(JNIEnv *, jclass, |
| 317 | + jlong converter, |
| 318 | + jboolean auto_hint) { |
| 319 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 320 | + pdf2htmlEX->setAutoHint(JNI_TRUE == auto_hint); |
| 321 | +} |
| 322 | + |
| 323 | +extern "C" |
| 324 | +JNIEXPORT void JNICALL |
| 325 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setStretchNarrowGlyph(JNIEnv *, jclass, |
| 326 | + jlong converter, |
| 327 | + jboolean stretch_narrow_glyph) { |
| 328 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 329 | + pdf2htmlEX->setStretchNarrowGlyph(JNI_TRUE == stretch_narrow_glyph); |
| 330 | +} |
| 331 | + |
| 332 | +extern "C" |
| 333 | +JNIEXPORT void JNICALL |
| 334 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setSqueezeWideGlyph(JNIEnv *, jclass, |
| 335 | + jlong converter, |
| 336 | + jboolean squeeze_wide_glyph) { |
| 337 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 338 | + pdf2htmlEX->setSqueezeWideGlyph(JNI_TRUE == squeeze_wide_glyph); |
| 339 | +} |
| 340 | + |
| 341 | +extern "C" |
| 342 | +JNIEXPORT void JNICALL |
| 343 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setOverrideFstype(JNIEnv *, jclass, |
| 344 | + jlong converter, |
| 345 | + jboolean override_fstype) { |
| 346 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 347 | + pdf2htmlEX->setOverrideFstype(JNI_TRUE == override_fstype); |
| 348 | +} |
| 349 | + |
| 350 | +extern "C" |
| 351 | +JNIEXPORT void JNICALL |
| 352 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setProcessType3(JNIEnv *, jclass, |
| 353 | + jlong converter, |
| 354 | + jboolean process_type3) { |
| 355 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 356 | + pdf2htmlEX->setProcessType3(JNI_TRUE == process_type3); |
| 357 | +} |
| 358 | + |
| 359 | +extern "C" |
| 360 | +JNIEXPORT void JNICALL |
| 361 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setHorizontalEpsilon(JNIEnv *, jclass, |
| 362 | + jlong converter, |
| 363 | + jdouble horizontal_epsilon) { |
| 364 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 365 | + pdf2htmlEX->setHorizontalEpsilon(horizontal_epsilon); |
| 366 | +} |
| 367 | + |
| 368 | +extern "C" |
| 369 | +JNIEXPORT void JNICALL |
| 370 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setVerticalEpsilon(JNIEnv *, jclass, |
| 371 | + jlong converter, |
| 372 | + jdouble vertical_epsilon) { |
| 373 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 374 | + pdf2htmlEX->setVEpsilon(vertical_epsilon); |
| 375 | +} |
| 376 | + |
| 377 | +extern "C" |
| 378 | +JNIEXPORT void JNICALL |
| 379 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setSpaceThreshold(JNIEnv *, jclass, |
| 380 | + jlong converter, |
| 381 | + jdouble space_threshold) { |
| 382 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 383 | + pdf2htmlEX->setSpaceThreshold(space_threshold); |
| 384 | +} |
| 385 | + |
| 386 | +extern "C" |
| 387 | +JNIEXPORT void JNICALL |
| 388 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setFontSizeMultiplier(JNIEnv *, jclass, |
| 389 | + jlong converter, |
| 390 | + jdouble font_size_multiplier) { |
| 391 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 392 | + pdf2htmlEX->setFontSizeMultiplier(font_size_multiplier); |
| 393 | +} |
| 394 | + |
| 395 | +extern "C" |
| 396 | +JNIEXPORT void JNICALL |
| 397 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setSpaceAsOffset(JNIEnv *, jclass, |
| 398 | + jlong converter, |
| 399 | + jboolean space_as_offset) { |
| 400 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 401 | + pdf2htmlEX->setSpaceAsOffset(JNI_TRUE == space_as_offset); |
| 402 | +} |
| 403 | + |
| 404 | +extern "C" |
| 405 | +JNIEXPORT void JNICALL |
| 406 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setToUnicode(JNIEnv *, jclass, |
| 407 | + jlong converter, |
| 408 | + jint toUnicode) { |
| 409 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 410 | + pdf2htmlEX->setToUnicode(toUnicode); |
| 411 | +} |
| 412 | + |
| 413 | +extern "C" |
| 414 | +JNIEXPORT void JNICALL |
| 415 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setOptimizeText(JNIEnv *, jclass, |
| 416 | + jlong converter, |
| 417 | + jboolean optimize_text) { |
| 418 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 419 | + pdf2htmlEX->setOptimizeText(JNI_TRUE == optimize_text); |
| 420 | +} |
| 421 | + |
| 422 | +extern "C" |
| 423 | +JNIEXPORT void JNICALL |
| 424 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setCorrectTextVisibility(JNIEnv *, jclass, |
| 425 | + jlong converter, |
| 426 | + jint textVisibilityCorrection) { |
| 427 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 428 | + pdf2htmlEX->setCorrectTextVisibility(textVisibilityCorrection); |
| 429 | +} |
| 430 | + |
| 431 | +extern "C" |
| 432 | +JNIEXPORT void JNICALL |
| 433 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setCoveredTextDPI(JNIEnv *, jclass, |
| 434 | + jlong converter, |
| 435 | + jdouble covered_text_dpi) { |
| 436 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 437 | + pdf2htmlEX->setCoveredTextDPI(covered_text_dpi); |
| 438 | +} |
| 439 | + |
| 440 | +extern "C" |
| 441 | +JNIEXPORT void JNICALL |
| 442 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setSVGNodeCountLimit(JNIEnv *, jclass, |
| 443 | + jlong converter, |
| 444 | + jint svg_node_count_limit) { |
| 445 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 446 | + pdf2htmlEX->setSVGNodeCountLimit(svg_node_count_limit); |
| 447 | +} |
| 448 | + |
| 449 | +extern "C" |
| 450 | +JNIEXPORT void JNICALL |
| 451 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setDebug(JNIEnv *, jclass, |
| 452 | + jlong converter, |
| 453 | + jboolean debug) { |
| 454 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 455 | + pdf2htmlEX->setDebug(JNI_TRUE == debug); |
| 456 | +} |
| 457 | + |
| 458 | +extern "C" |
| 459 | +JNIEXPORT void JNICALL |
| 460 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setProof(JNIEnv *, jclass, |
| 461 | + jlong converter, |
| 462 | + jboolean proof) { |
| 463 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 464 | + pdf2htmlEX->setProof(JNI_TRUE == proof); |
| 465 | +} |
| 466 | + |
| 467 | +extern "C" |
| 468 | +JNIEXPORT void JNICALL |
| 469 | +Java_com_viliussutkus89_android_pdf2htmlex_NativeConverter_setQuiet(JNIEnv *, jclass, |
| 470 | + jlong converter, |
| 471 | + jboolean quiet) { |
| 472 | + auto * pdf2htmlEX = (pdf2htmlEX::pdf2htmlEX *) converter; |
| 473 | + pdf2htmlEX->setQuiet(JNI_TRUE == quiet); |
| 474 | +} |
0 commit comments