#include "bmepsi.h"
#include "bmeps.h"
Defines | |
#define | B2PDF_C 1 |
Inside the b2pdf.c module. | |
#define | pdf_open_dictionary(bj) kw_out(bj, 6) |
Open a dictionary. | |
#define | pdf_close_dictionary(bj) kw_out(bj, 7) |
Close a dictionary. | |
#define | DKSP(i) dkstream_puts(ofs2, kw[i]) |
Print one keyword to ofs2. | |
Functions | |
static void | kw_out (BJ *bj, size_t i) |
Print one keyword to output stream. | |
static void | pdf_write_reference (BJ *bj, unsigned long n) |
Write reference to another object. | |
static int | pdf_begin_object (BJ *bj, unsigned long objno) |
Begin PDF object. | |
static void | pdf_end_object (BJ *bj) |
End PDF object. | |
static int | compare_obj_pos (void *l, void *r, int cr) |
Compare two PDF object positions. | |
static void | pdf_file_start (BJ *bj, int how) |
Start PDF file. | |
static void | transfer_entire_file (BJ *bj, dk_stream_t *os, FILE *f) |
Transfer entire file. | |
static void | transfer_file_to_stream (dk_stream_t *os, FILE *f, unsigned long fs) |
Transfer a file to a stream. | |
static void | pdf_file_objects_normally (BJ *bj) |
Create objects structure for normal conversion. | |
static void | pdf_file_objects_dct (BJ *bj) |
Create PDF object structure for DCT-pass-through. | |
static void | pdf_file_objects_draft (BJ *bj) |
Create draft PDF. | |
static void | pdf_file_objects (BJ *bj, int how) |
Create PDF object structure. | |
static void | pdf_file_end (BJ *bj, int how) |
Finish PDF file (write xref table). | |
void | bmeps_pdf (BJ *bj, int how) |
Convert to PDF. | |
Variables | |
static char * | kw [] |
Keywords used for output. | |
static size_t | sz_kw = sizeof(kw)/sizeof(PCHAR) |
Number of elements in kw. | |
static char | sccs_id [] = { "@(#)b2pdf.ctr 1.25 04/14/09" } |
SCCIS ID. |
#define B2PDF_C 1 |
Inside the b2pdf.c module.
#define DKSP | ( | i | ) | dkstream_puts(ofs2, kw[i]) |
Print one keyword to ofs2.
void bmeps_pdf | ( | BJ * | bj, | |
int | how | |||
) |
Convert to PDF.
bj | Bmeps job. | |
how | Conversion type (0=normal, 1=DCT-passthrough, 2=draft. |
static int compare_obj_pos | ( | void * | l, | |
void * | r, | |||
int | cr | |||
) | [static] |
Compare two PDF object positions.
l | Pointer to left object position. | |
r | Pointer to right object position. | |
cr | Comparison criteria. |
static void kw_out | ( | BJ * | bj, | |
size_t | i | |||
) | [static] |
Print one keyword to output stream.
bj | Bmeps job. | |
i | Index of keyword to print. |
static int pdf_begin_object | ( | BJ * | bj, | |
unsigned long | objno | |||
) | [static] |
Begin PDF object.
bj | Bmeps job. | |
objno | Number of new object. |
static void pdf_end_object | ( | BJ * | bj | ) | [static] |
End PDF object.
bj | Bmeps job. |
static void pdf_file_end | ( | BJ * | bj, | |
int | how | |||
) | [static] |
Finish PDF file (write xref table).
bj | Bmeps job. | |
how | Ignored. |
static void pdf_file_objects | ( | BJ * | bj, | |
int | how | |||
) | [static] |
Create PDF object structure.
bj | Bmeps job. | |
how | 0=normal,1=DCT,2=draft. |
static void pdf_file_objects_dct | ( | BJ * | bj | ) | [static] |
Create PDF object structure for DCT-pass-through.
bj | Bmeps job. |
static void pdf_file_objects_draft | ( | BJ * | bj | ) | [static] |
Create draft PDF.
bj | Bmeps job. |
static void pdf_file_objects_normally | ( | BJ * | bj | ) | [static] |
Create objects structure for normal conversion.
bj | Bmeps job. |
static void pdf_file_start | ( | BJ * | bj, | |
int | how | |||
) | [static] |
Start PDF file.
bj | Bmeps job | |
how | Ignored. |
static void pdf_write_reference | ( | BJ * | bj, | |
unsigned long | n | |||
) | [static] |
Write reference to another object.
bj | Bmeps job. | |
n | Index of object to reference. |
static void transfer_entire_file | ( | BJ * | bj, | |
dk_stream_t * | os, | |||
FILE * | f | |||
) | [static] |
Transfer entire file.
bj | Bmeps job. | |
os | Output stream. | |
f | Input file. |
static void transfer_file_to_stream | ( | dk_stream_t * | os, | |
FILE * | f, | |||
unsigned long | fs | |||
) | [static] |
Transfer a file to a stream.
os | Output stream. | |
f | Input file. | |
fs | File size. |