forked from Sitwon/SbcPyCtl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdfvifc_c.h
More file actions
3447 lines (3134 loc) · 129 KB
/
dfvifc_c.h
File metadata and controls
3447 lines (3134 loc) · 129 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* @file dfvifc_c.h
* @brief SBC C Interface
*
* @author Antenna House, Inc.
*
* Copyright (C) 2002-2009 Antenna House, Inc. All rights reserved.
*/
#ifndef DFVIFC_C_H__
#define DFVIFC_C_H__
#include <stddef.h>
#if !defined(_DOXYGEN) && defined(_MSC_VER) && defined(_WIN32)
#ifdef DFVINTERFACE_EXPORTS
#define DFVINTERFACE_API __declspec( dllexport )
#else
#define DFVINTERFACE_API __declspec( dllimport )
#endif
#else
#define DFVINTERFACE_API
#endif
/**
* Error Code
*/
typedef long DfvIfErrorCode; /* 0 means no error */
/**
* Error Level
*/
typedef enum {
ELVL_NORMAL = 0, /* no error */
ELVL_INFORMATION = 1,
ELVL_WARNING = 2,
ELVL_RECOVERABLE = 3,
ELVL_FATAL = 4
} DfvIfErrorLevel;
/**
* Error Stream Type for MessageListener
*/
typedef enum {
EST_NONE, /* no output */
EST_STDOUT, /* output to stdout */
EST_STDERR /* output to stderr */
} DfvErrorStreamType;
/**
* PDF version
*/
typedef enum {
PDF_13, /* PDF 1.3 */
PDF_14, /* PDF 1.4 */
PDF_15, /* PDF 1.5 */
PDF_16, /* PDF 1.6 */
PDF_17, /* PDF 1.7 */
PDFA_1b_2005= 400 /* ISO 19005-1:2005 (based on PDF1.4) */
} DfvPDFVERSION;
/**
* PDF encrypt level
*/
typedef enum {
ENCLEVEL_40RC4 = 0, /* 40-bit RC4 */
ENCLEVEL_128RC4, /* 128-bit RC4 */
ENCLEVEL_128AES, /* 128-bit AES */
ENCLEVEL_256AES, /* 256-bit AES */
ENCLEVEL_40 = ENCLEVEL_40RC4,
ENCLEVEL_128 = ENCLEVEL_128RC4
} DfvPDFENCRYPTLEVEL;
/**
* PDF print allow
*/
typedef enum {
PRALLOW_NONE, /* not allowed */
PRALLOW_LOW, /* low resolution printing */
PRALLOW_HIGH /* high resolution printing */
} DfvPDFPRINTALLOW;
/**
* PDF image compression
*/
typedef enum {
IMGCMPR_AUTO, /* auto */
IMGCMPR_JPEG, /* JPEG */
IMGCMPR_ZLIB, /* ZLIB */
IMGCMPR_JPEG2K /* JPEG2000 */
} DfvPDFIMAGECOMPRESSION;
/**
* PDF RGB conversion
*/
typedef enum {
RGBCONV_NONE, /* no conversion */
RGBCONV_BLACK, /* black to devicegray */
RGBCONV_GRAY, /* gray to devicegray */
RGBCONV_ALL /* all rgb to devicegray */
} DfvPDFRGBCONVERSION;
/**
* Embed font
*/
typedef enum {
EMBALLFONT_PART, /* specified fonts */
EMBALLFONT_ALL, /* all fonts except Base14 fonts */
EMBALLFONT_BASE14 /* all fonts */
} DfvEMBEDALLFONT;
/**
* Image downsampling
*/
typedef enum {
IMGDOWNSAMPLING_NONE, /* no downsampling */
IMGDOWNSAMPLING_AVERAGE, /* average downsampling */
IMGDOWNSAMPLING_BICUBIC, /* bicubic downsampling */
IMGDOWNSAMPLING_SUBSAMPLING /* subsampling */
} DfvIMAGEDOWNSAMPLING;
/**
* Monochrome compression
*/
typedef enum {
MONOCMPR_CCITT4, /* CCITTFaxDecode group 4 filter,default value */
MONOCMPR_CCITT3, /* CCITTFaxDecode group 3 filter */
MONOCMPR_RUNLENGTH, /* RunLengthDecode filter */
MONOCMPR_ZLIB, /* FlateDecode filter */
MONOCMPR_OFF /* no filter */
} DfvMONOCHROMECOMPRESSION;
/**
* SVG version
*/
typedef enum {
SVG_11, /* SVG 1.1 */
SVG_Basic, /* SVG Basic */
SVG_Tiny /* SVG Tiny */
} DfvSVGVERSION;
/**
* Image processing
*/
typedef enum {
IMGPT_EMBED_ALL, /* embed all */
IMGPT_COPY_ALL, /* copy all */
IMGPT_LINK, /* link */
IMGPT_COPY /* copy */
} DfvIMAGEPROCTYPE;
/**
* Image conversion
*/
typedef enum {
IMGCNV_AUTO, /* auto */
IMGCNV_JPEG, /* jpeg conversion except png */
IMGCNV_PNG, /* png conversion except jpeg */
IMGCNV_JPEGALL /* jpeg-all conversion */
} DfvIMAGECONVERSION;
/**
* INX output mode
*/
typedef enum {
INXOM_TEXT, /* text area output mode */
INXOM_LINE, /* line area output */
INXOM_BLOCK /* block area output */
} DfvINXOUTPUTMODE;
/**
* MIF output mode
*/
typedef enum {
MIFOM_TEXT, /* text area output mode */
MIFOM_LINE, /* line area output */
MIFOM_BLOCK /* block area output */
} DfvMIFOUTPUTMODE;
/***************************************************************
* format information
*/
#ifdef __cplusplus
extern "C" {
#endif
/** Pointer to DfvObj instance. */
typedef void* CDfvObjPtr;
/**
* Error callback handler
*/
typedef void (DfvOnMessageProc)(DfvIfErrorLevel errLevel, DfvIfErrorCode errCode, const char* errMessage);
typedef void (DfvOnMessageProcW)(DfvIfErrorLevel errLevel, DfvIfErrorCode errCode, const wchar_t* errMessage);
typedef void (DfvOnFormatPageProc)(long pageNo);
typedef void (DfvOnMessageProcEx)(void* pAnyObj, DfvIfErrorLevel errLevel, DfvIfErrorCode errCode, const char* errMessage);
typedef void (DfvOnMessageProcExW)(void* pAnyObj, DfvIfErrorLevel errLevel, DfvIfErrorCode errCode, const wchar_t* errMessage);
typedef void (DfvOnFormatPageProcEx)(void* pAnyObj, long pageNo);
/**
* Create instance of DfvObj
*
* @return Pointer to DfvObj instance.
*/
DFVINTERFACE_API CDfvObjPtr dfv_createDfvObject();
/**
* Release instance of DfvObj
*
* @param pDfvObj Pointer to DfvObj instance.
*/
DFVINTERFACE_API void dfv_releaseDfvObject(CDfvObjPtr pDfvObj);
/**
* Get the URL of XML document you will format.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the text. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API char* dfv_getDocumentURI(CDfvObjPtr pDfvObj, char* pVal, int size);
/**
* Get the URL of XML document you will format.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the text. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API wchar_t* dfv_getDocumentURIW(CDfvObjPtr pDfvObj, wchar_t* pVal, int size);
/**
* Specifies the URL of XML document you will format.
* If it is omitted or "\@STDIN" is specified, XML document is loaded from stdin.
* The document loaded from stdin are supposed to be FO files.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the URL of XSL document.
*/
DFVINTERFACE_API void dfv_setDocumentURI(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Specifies the URL of XML document you will format.
* If it is omitted or "\@STDIN" is specified, XML document is loaded from stdin.
* The document loaded from stdin are supposed to be FO files.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the URL of XSL document.
*/
DFVINTERFACE_API void dfv_setDocumentURIW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Get the path name of the output file.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the text. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API char* dfv_getOutputFilePath(CDfvObjPtr pDfvObj, char* pVal, int size);
/**
* Get the path name of the output file.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the text. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API wchar_t* dfv_getOutputFilePathW(CDfvObjPtr pDfvObj, wchar_t* pVal, int size);
/**
* Specifies the path name of the output file. When "\@STDOUT" is specified, it is considered as stdout.
* If both the printer name and this property are specified, the formatted result will be stored in
* the file by the printer driver.
* When "\@PDF" is specified as output, the PDF is stored in the file specified by this property.
* If the property is not specified, it is considered as stdout.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the path name of the output file.
*/
DFVINTERFACE_API void dfv_setOutputFilePath(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Specifies the path name of the output file. When "\@STDOUT" is specified, it is considered as stdout.
* If both the printer name and this property are specified, the formatted result will be stored in
* the file by the printer driver.
* When "\@PDF" is specified as output, the PDF is stored in the file specified by this property.
* If the property is not specified, it is considered as stdout.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the path name of the output file.
*/
DFVINTERFACE_API void dfv_setOutputFilePathW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Get the path name of XML-format Option setting file which describes Server Based Converter options.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the text. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @param n Specifies to get n-th URI. 0 means first URI.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API char* dfv_getOptionFileURI(CDfvObjPtr pDfvObj, char* pVal, int size, int n);
/**
* Get the path name of XML-format Option setting file which describes Server Based Converter options.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the text. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @param n Specifies to get n-th URI. 0 means first URI.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API wchar_t* dfv_getOptionFileURIW(CDfvObjPtr pDfvObj, wchar_t* pVal, int size, int n);
/**
* Specifies the path name of XML-format Option setting file which describes Server Based Converter options.
* The set of former URIs is thrown away.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the path name of XML-format Option setting file.
*/
DFVINTERFACE_API void dfv_setOptionFileURI(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Specifies the path name of XML-format Option setting file which describes Server Based Converter options.
* The set of former URIs is thrown away.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the path name of XML-format Option setting file.
*/
DFVINTERFACE_API void dfv_setOptionFileURIW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Append the path name of XML-format Option setting file which describes Server Based Converter options.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the path name of XML-format Option setting file.
*/
DFVINTERFACE_API void dfv_addOptionFileURI(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Append the path name of XML-format Option setting file which describes Server Based Converter options.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the path name of XML-format Option setting file.
*/
DFVINTERFACE_API void dfv_addOptionFileURIW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Get the number of URIs of XML-format Option setting file which describes Server Based Converter options.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return Returns the number of URIs.
*/
DFVINTERFACE_API int dfv_getOptionFileCount(CDfvObjPtr pDfvObj);
/**
* Get the start page number of document to output.
*
* @param pDfvObj Pointer to DfvObj instance.
* @return start page number of output.
*/
DFVINTERFACE_API long dfv_getStartPage(CDfvObjPtr pDfvObj);
/**
* Specifies the start page number of document to output.
* If the start page is omitted or the specified value is 0 or less, the start page is
* considered from the first page.
* If the setting is inconsistent, (for example, StartPage=5 EndPage=3) an error occurs.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal start page number of output.
*/
DFVINTERFACE_API void dfv_setStartPage(CDfvObjPtr pDfvObj, long newVal);
/**
* Get the end page number of document to output.
*
* @param pDfvObj Pointer to DfvObj instance.
* @return end page number of output.
*/
DFVINTERFACE_API long dfv_getEndPage(CDfvObjPtr pDfvObj);
/**
* Specifies the end page number of document to output.
* If the end page is omitted or the specified value exceeds the actual page number, the end page
* is considered as the last page.
* If the setting is inconsistent, (for example, StartPage=5 EndPage=3) an error occurs.
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal end page number of output.
*/
DFVINTERFACE_API void dfv_setEndPage(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Specifies the owner password for PDF. The password must be within 32 bytes.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the owner password.
*/
DFVINTERFACE_API void dfv_setPdfOwnerPassword(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Effective when outputting to PDF.
* Specifies the owner password for PDF. The password must be within 32 bytes.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the owner password.
*/
DFVINTERFACE_API void dfv_setPdfOwnerPasswordW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Effective when outputting to PDF.
* Specifies the user password for PDF. The password must be within 32 bytes.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the user password.
*/
DFVINTERFACE_API void dfv_setPdfUserPassword(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Effective when outputting to PDF.
* Specifies the user password for PDF. The password must be within 32 bytes.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Pointer to a null-terminated string to be used as the user password.
*/
DFVINTERFACE_API void dfv_setPdfUserPasswordW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Effective when outputting to PDF.
* Disables printing the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables printing the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoPrinting(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables printing the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables printing the PDF file.
* If nonezero is returned, Disables printing the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoPrinting(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables making changes of the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables making changes of the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoChanging(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables making changes of the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables making changes of the PDF file.
* If nonezero is returned, Disables making changes of the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoChanging(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables copying the content of the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables copying the content of the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoContentCopying(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables copying the content of the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables copying the content of the PDF file.
* If nonezero is returned, Disables copying the content of the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoContentCopying(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables adding comments and form fields to the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables adding comments and form fields to the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoAddingOrChangingCommnets(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables adding comments and form fields to the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables adding comments and form fields to the PDF file.
* If nonezero is returned, Disables adding comments and form fields to the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoAddingOrChangingCommnets(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables adding comments and form fields to the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables adding comments and form fields to the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoAddingOrChangingComments(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables adding comments and form fields to the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables adding comments and form fields to the PDF file.
* If nonezero is returned, Disables adding comments and form fields to the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoAddingOrChangingComments(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Enables specifying whether the version of PDF is 1.3, 1.4 or 1.5.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Specifies the version of PDF.
*/
DFVINTERFACE_API void dfv_setPdfVersion(CDfvObjPtr pDfvObj, DfvPDFVERSION newVal);
/**
* Effective when outputting to PDF.
* Get the version of PDF.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the version of PDF.
*/
DFVINTERFACE_API DfvPDFVERSION dfv_getPdfVersion(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables filling in of form fields and signing of the PDF file.
* This parameter is effective only when you specify PDF1.4 or later to PDF version.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables filling in of form fields and signing of the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoFillForm(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables filling in of form fields and signing of the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables filling in of form fields and signing of the PDF file.
* If nonezero is returned, Disables filling in of form fields and signing of the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoFillForm(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables text access for screen reader devices of the PDF file.
* This parameter is effective only when you specify 1.4 or later with PDF version.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables text access for screen reader devices of the PDF file.
*/
DFVINTERFACE_API void dfv_setPdfNoAccessibility(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables text access for screen reader devices of the PDF file.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables text access for screen reader devices of the PDF file.
* If nonezero is returned, Disables text access for screen reader devices of the PDF file.
*/
DFVINTERFACE_API long dfv_getPdfNoAccessibility(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Disables inserting, deleting and rotating the PDF pages.
* This parameter is effective only when you specify 1.4 or later with PDF version
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, Disables inserting, deleting and rotating the PDF pages.
*/
DFVINTERFACE_API void dfv_setPdfNoAssembleDoc(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Get disables inserting, deleting and rotating the PDF pages.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return If zero is returned, Enables inserting, deleting and rotating the PDF pages.
* If nonezero is returned, Disables inserting, deleting and rotating the PDF pages.
*/
DFVINTERFACE_API long dfv_getPdfNoAssembleDoc(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies the key length when encrypting the PDF file during outputting.
* The key length can be specified as either 40 or 128 (bit).
* This parameter is effective only when you specify PDF1.4 or later with PDF version
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Specifies the key length.
*/
DFVINTERFACE_API void dfv_setPdfEncryptLevel(CDfvObjPtr pDfvObj, DfvPDFENCRYPTLEVEL newVal);
/**
* Effective when outputting to PDF.
* Get the key length when encrypting the PDF file during outputting.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the key length.
*/
DFVINTERFACE_API DfvPDFENCRYPTLEVEL dfv_getPdfEncryptLevel(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Gets the value of whether to embed all embeddable fonts in PDF.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of whether to embed all embeddable fonts
*/
DFVINTERFACE_API long dfv_getPdfEmbedAllFonts(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Embeds all embeddable fonts in PDF to create.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If the value is 'true' is specified, Embeds all embeddable fonts
*/
DFVINTERFACE_API void dfv_setPdfEmbedAllFonts(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Gets the font specified to be embedded in PDF.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the fontnames. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API char* dfv_getPdfEmbedFonts(CDfvObjPtr pDfvObj, char* pVal, int size);
/**
* Effective when outputting to PDF.
* Gets the font specified to be embedded in PDF.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param pVal Pointer to the buffer that will receive the fontnames. If the string is as long or longer than the buffer,
* the string is truncated and terminated with a NULL character.
* @param size Specifies the number of the 'pVal' buffer, including the NULL character. If the text exceeds this limit, it is truncated.
* @return Returns the 'pVal'.
*/
DFVINTERFACE_API wchar_t* dfv_getPdfEmbedFontsW(CDfvObjPtr pDfvObj, wchar_t* pVal, int size);
/**
* Effective when outputting to PDF.
* Embeds the specified font in PDF to create. If you want to specify plural fonts, put commas between fonts.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal fonts specified to embed
*/
DFVINTERFACE_API void dfv_setPdfEmbedFonts(CDfvObjPtr pDfvObj, const char* newVal);
/**
* Effective when outputting to PDF.
* Embeds the specified font in PDF to create. If you want to specify plural fonts, put commas between fonts.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal fonts specified to embed
*/
DFVINTERFACE_API void dfv_setPdfEmbedFontsW(CDfvObjPtr pDfvObj, const wchar_t* newVal);
/**
* Effective when outputting to PDF.
* Gets the value of whether to issues the error when failing to embed fonts.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of whether to issues the error
*/
DFVINTERFACE_API long dfv_getPdfErrorOnEmbedFault(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* An error is issued in case of failing to embed fonts.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If the value is 'true' is specified, an error is issued.
*/
DFVINTERFACE_API void dfv_setPdfErrorOnEmbedFault(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Gets the value of whether to issues the error when missing glyph.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of whether to issues the error
*/
DFVINTERFACE_API long dfv_getPdfErrorOnMissingGlyph(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* An error is issued in case of missing glyph.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If the value is 'true' is specified, an error is issued.
*/
DFVINTERFACE_API void dfv_setPdfErrorOnMissingGlyph(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Gets the value of whether to print the resulting PDF file or not.
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>PRALLOW_NONE </td><td>= 0 Not Allowed</td></tr>
* <tr><td>PRALLOW_LOW </td><td>= 1 Low Resolution Printing</td></tr>
* <tr><td>PRALLOW_HIGH </td><td>= 2 High Resolution Printing</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of printing allowed
*/
DFVINTERFACE_API DfvPDFPRINTALLOW dfv_getPdfPrintingAllowed(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Spesifies whether to permit printing PDF to create with one of the following values.
* This parameter is effective only when you specify PDF1.4 or later to PDF version (setPdfVersion).
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>PRALLOW_NONE </td><td>= 0 Not Allowed</td></tr>
* <tr><td>PRALLOW_LOW </td><td>= 1 Low Resolution Printing</td></tr>
* <tr><td>PRALLOW_HIGH </td><td>= 2 High Resolution Printing</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal the value of printing allowed
*/
DFVINTERFACE_API void dfv_setPdfPrintingAllowed(CDfvObjPtr pDfvObj, DfvPDFPRINTALLOW newVal);
/**
* Effective when outputting to PDF.
* Gets the value of how to compress the color images embedded in PDF.
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>IMGCMPR_AUTO </td><td>= 0 Auto</td></tr>
* <tr><td>IMGCMPR_JPEG </td><td>= 1 JPEG compression</td></tr>
* <tr><td>IMGCMPR_ZLIB </td><td>= 2 ZLIB compression</td></tr>
* <tr><td>IMGCMPR_JPEG2K </td><td>= 3 JPEG2000 compression</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of how raster graphics are compressed and stored
*/
DFVINTERFACE_API DfvPDFIMAGECOMPRESSION dfv_getPdfImageCompression(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* When the color image format cannot be stored directly in PDF, the image is stored after being transformed into the bit map format which is compatible with PDF. The compression method of the data stored in a PDF file is then specified by one of the following values.<BR>
* When IMGCMPR_AUTO is selected, the process is automatically done and creates the image data according to the setting of dfv_setPdfJPEGQuality and dfv_setPdfRasterizeResolution. Whichever has the smaller compressed size, JPEG or ZLIB, is selected. <BR>
This is the setting for the color image. Spesify dfv_setPdfGrayscaleImageCompression for the grayscale image, and dfv_setPdfMonochromeImageCompression for the monochrome image.
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>IMGCMPR_AUTO </td><td>= 0 Auto</td></tr>
* <tr><td>IMGCMPR_JPEG </td><td>= 1 JPEG compression</td></tr>
* <tr><td>IMGCMPR_ZLIB </td><td>= 2 ZLIB compression</td></tr>
* <tr><td>IMGCMPR_JPEG2K </td><td>= 3 JPEG2000 compression</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal the value of how raster graphics are compressed and stored
*/
DFVINTERFACE_API void dfv_setPdfImageCompression(CDfvObjPtr pDfvObj, DfvPDFIMAGECOMPRESSION newVal);
/**
* Gets the value of the quality of JPEG format that is specified by dfv_setPdfImageCompression() stored in PDF.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of the quality of JPEG format
*/
DFVINTERFACE_API int dfv_getPdfJPEGQuality(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* For the color image format that can not be stored directly in PDF, specifies the image quality by the numerical value within the range of 1-100 when IMGCMPR_JPEG is specified by setPdfImageCompression. The quality becomes higher in proportion to the increase in the number; however the file size also becomes larger.<BR>
* CAUTION: It is not for changing the quality of a JPEG format image.<BR>
* This is the setting for the color image. Spesify setPdfGrayscaleJPEGQuality for the grayscale image.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal the value of the quality of JPEG format
*/
DFVINTERFACE_API void dfv_setPdfJPEGQuality(CDfvObjPtr pDfvObj, int newVal);
/**
* Effective when outputting to PDF.
* Gets the value of whether the text and the line art in PDF are compressed in order to make the size of PDF smaller or not.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of whether make the size of PDF smaller or not
*/
DFVINTERFACE_API long dfv_getPdfCompressContentStream(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies whether the text and the line art in PDF are compressed in order to make the size of PDF smaller or not.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If the value is 'true' is specified, make the PDF compress
*/
DFVINTERFACE_API void dfv_setPdfCompressContentStream(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Gets the value of how to transform external link specified by the relative address in the PDF link.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of how to transform external link
*/
DFVINTERFACE_API long dfv_getPdfUseLaunchForRelativeURI(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies whether the external link specified by the relative address is transformed into 'Open the file' or into 'World Wide Web link' in the PDF link properties.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If nonezero is specified, it is transformed to 'Open the file'. If zero is specified, it is transformed to 'World Wide Web link'
*/
DFVINTERFACE_API void dfv_setPdfUseLaunchForRelativeURI(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Gets the value of how to convert the RGB color space (DebiceRGB) to DeviceGray.
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>RGBCONV_NONE </td><td>= 0 No Conversion</td></tr>
* <tr><td>RGBCONV_BLACK </td><td>= 1 Black to DeviceGray</td></tr>
* <tr><td>RGBCONV_GRAY </td><td>= 2 Gray to DeviceGray</td></tr>
* <tr><td>RGBCONV_ALL </td><td>= 3 All RGB to DeviceGray</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of how to convert
*/
DFVINTERFACE_API DfvPDFRGBCONVERSION dfv_getPdfRGBConversion(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies how to convert the RGB color space (DeviceRGB) to DeviceGray.
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>RGBCONV_NONE </td><td>= 0 No Conversion</td></tr>
* <tr><td>RGBCONV_BLACK </td><td>= 1 Black to DeviceGray</td></tr>
* <tr><td>RGBCONV_GRAY </td><td>= 2 Gray to DeviceGray</td></tr>
* <tr><td>RGBCONV_ALL </td><td>= 3 All RGB to DeviceGray</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal the value of how to convert
*/
DFVINTERFACE_API void dfv_setPdfRGBConversion(CDfvObjPtr pDfvObj, DfvPDFRGBCONVERSION newVal);
#if defined(_DOXYGEN) || (defined(_MSC_VER) && defined(_WIN32))
/**
* Effective when outputting to PDF.
* Gets the value of the rasterised-resolution of the transformed raster images.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return Rasterised-resolution
*/
DFVINTERFACE_API int dfv_getPdfRasterizeResolution(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies the value of the rasterised-resolution of the transformed raster images in the range from 70 to 500(dpi). SVG, EMF and WMF are drawn in PDF as vectors without being transformed to raster images.
* This setting is effective only with Windows version.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal Rasterised-resolution (70 to 500)
*/
DFVINTERFACE_API void dfv_setPdfRasterizeResolution(CDfvObjPtr pDfvObj, int newVal);
#endif
/**
* Effective when outputting to PDF.
* Gets the value of whether to output linearize PDF or not.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of whether to output linearize pdf or not.
*/
DFVINTERFACE_API long dfv_getPdfLinearize(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies whether to output linearize PDF or not.
*
*
* @param pDfvObj Pointer to DfvObj instance.
* @param newVal If the value is 'true' is specified, output linearlize PDF.
*/
DFVINTERFACE_API void dfv_setPdfLinearize(CDfvObjPtr pDfvObj, long newVal);
/**
* Effective when outputting to PDF.
* Gets the value of whether to embed all embeddable fonts
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>EMBALLFONT_PART </td><td>= 0 Specified fonts </td></tr>
* <tr><td>EMBALLFONT_ALL </td><td>= 1 All fonts except Base14 fonts</td></tr>
* <tr><td>EMBALLFONT_BASE14 </td><td>= 2 All fonts</td></tr>
* </table>
*
* @param pDfvObj Pointer to DfvObj instance.
* @return the value of whether to embed all embeddable fonts
*/
DFVINTERFACE_API DfvEMBEDALLFONT dfv_getPdfEmbedAllFontsEx(CDfvObjPtr pDfvObj);
/**
* Effective when outputting to PDF.
* Specifies whether to embed the all outline data of fonts in PDF or not with one of the following values, which are True type fonts and Type1 Fonts and are embeddable in the formatted result.
*
*
* <table border="0" cellspacing="0" cellpadding="0">
* <tr><td>EMBALLFONT_PART </td><td>= 0 Specified fonts </td></tr>
* <tr><td>EMBALLFONT_ALL </td><td>= 1 All fonts except Base14 fonts</td></tr>
* <tr><td>EMBALLFONT_BASE14 </td><td>= 2 All fonts</td></tr>
* </table>
*
*If the value is EMBALLFONT_PART, only fonts specified in dfv_setPdfEmbedFonts are embedded. If the value is EMBALLFONT_ALL, all fonts that can be embedded except Base 14 fonts will be embedded. If the value is EMBALLFONT_BASE14, all fonts including Base 14 fonts that can be embedded will be embedded.
*