...
|
...
|
@@ -101,7 +101,6 @@ static void JavaScript_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_
|
101
|
101
|
static void OpenAction_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_action *);
|
102
|
102
|
static void Launch_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_action *);
|
103
|
103
|
static void Page_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_action *);
|
104
|
|
-static void print_pdf_stats(struct pdf_struct *);
|
105
|
104
|
static void Author_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_action *);
|
106
|
105
|
static void Creator_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_action *);
|
107
|
106
|
static void Producer_cb(struct pdf_struct *, struct pdf_obj *, struct pdfname_action *);
|
...
|
...
|
@@ -2682,10 +2681,6 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset)
|
2682
|
2682
|
|
2683
|
2683
|
pdf_export_json(&pdf);
|
2684
|
2684
|
|
2685
|
|
-#if 0
|
2686
|
|
- print_pdf_stats(&pdf);
|
2687
|
|
-#endif
|
2688
|
|
-
|
2689
|
2685
|
cli_dbgmsg("cli_pdf: returning %d\n", rc);
|
2690
|
2686
|
free(pdf.objs);
|
2691
|
2687
|
free(pdf.fileID);
|
...
|
...
|
@@ -3307,36 +3302,6 @@ static void Colors_cb(struct pdf_struct *pdf, struct pdf_obj *obj, struct pdfnam
|
3307
|
3307
|
#endif
|
3308
|
3308
|
}
|
3309
|
3309
|
|
3310
|
|
-static void print_pdf_stats(struct pdf_struct *pdf)
|
3311
|
|
-{
|
3312
|
|
- if (!(pdf))
|
3313
|
|
- return;
|
3314
|
|
-
|
3315
|
|
- cli_dbgmsg("Statistics collected from PDF:\n");
|
3316
|
|
- cli_dbgmsg(" Invalid Objects:\t\t\t\t%u\n", pdf->stats.ninvalidobjs);
|
3317
|
|
- cli_dbgmsg(" Number of JavaScript Objects:\t\t%u\n", pdf->stats.njs);
|
3318
|
|
- cli_dbgmsg(" Number of Inflate-Encoded Objects:\t\t%u\n", pdf->stats.nflate);
|
3319
|
|
- cli_dbgmsg(" Number of ActiveX Objects:\t\t\t%u\n", pdf->stats.nactivex);
|
3320
|
|
- cli_dbgmsg(" Number of Flash Objects:\t\t\t%u\n", pdf->stats.nflash);
|
3321
|
|
- cli_dbgmsg(" Number of Declared Colors:\t\t\t%u\n", pdf->stats.ncolors);
|
3322
|
|
- cli_dbgmsg(" Number of ASCIIHexEncoded Objects:\t\t%u\n", pdf->stats.nasciihexdecode);
|
3323
|
|
- cli_dbgmsg(" Number of ASCII85Encoded Objects:\t\t%u\n", pdf->stats.nascii85decode);
|
3324
|
|
- cli_dbgmsg(" Number of Embedded Files:\t\t\t%u\n", pdf->stats.nembeddedfile);
|
3325
|
|
- cli_dbgmsg(" Number of Image Objects:\t\t\t%u\n", pdf->stats.nimage);
|
3326
|
|
- cli_dbgmsg(" Number of LZW-Encoded Objects:\t\t%u\n", pdf->stats.nlzw);
|
3327
|
|
- cli_dbgmsg(" Number of RunLengthEncoded Objects:\t%u\n", pdf->stats.nrunlengthdecode);
|
3328
|
|
- cli_dbgmsg(" Number of Fax-Encoded Objects:\t\t%u\n", pdf->stats.nfaxdecode);
|
3329
|
|
- cli_dbgmsg(" Number of JBIG2-Encoded Objects:\t\t%u\n", pdf->stats.njbig2decode);
|
3330
|
|
- cli_dbgmsg(" Number of DCT-Encoded Objects:\t\t%u\n", pdf->stats.ndctdecode);
|
3331
|
|
- cli_dbgmsg(" Number of JPX-Encoded Objects:\t\t%u\n", pdf->stats.njpxdecode);
|
3332
|
|
- cli_dbgmsg(" Number of Crypt-Encoded Objects:\t\t%u\n", pdf->stats.ncrypt);
|
3333
|
|
- cli_dbgmsg(" Number of Standard-Filtered Objects:\t%u\n", pdf->stats.nstandard);
|
3334
|
|
- cli_dbgmsg(" Number of Signed Objects:\t\t\t%u\n", pdf->stats.nsigned);
|
3335
|
|
- cli_dbgmsg(" Number of Open Actions:\t\t\t%u\n", pdf->stats.nopenaction);
|
3336
|
|
- cli_dbgmsg(" Number of Launch Objects:\t\t\t%u\n", pdf->stats.nlaunch);
|
3337
|
|
- cli_dbgmsg(" Number of Objects with /Pages:\t\t%u\n", pdf->stats.npage);
|
3338
|
|
-}
|
3339
|
|
-
|
3340
|
3310
|
static void pdf_export_json(struct pdf_struct *pdf)
|
3341
|
3311
|
{
|
3342
|
3312
|
#if HAVE_JSON
|