b2pdf.c File Reference

Conversion to PDF. More...

#include "bmepsi.h"
#include "bmeps.h"

Include dependency graph for b2pdf.c:


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.

Detailed Description

Conversion to PDF.


Define Documentation

#define B2PDF_C   1

Inside the b2pdf.c module.

#define DKSP (  )     dkstream_puts(ofs2, kw[i])

Print one keyword to ofs2.


Function Documentation

void bmeps_pdf ( BJ bj,
int  how 
)

Convert to PDF.

Parameters:
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.

Parameters:
l Pointer to left object position.
r Pointer to right object position.
cr Comparison criteria.
Returns:
The comparison result.

static void kw_out ( BJ bj,
size_t  i 
) [static]

Print one keyword to output stream.

Parameters:
bj Bmeps job.
i Index of keyword to print.

static int pdf_begin_object ( BJ bj,
unsigned long  objno 
) [static]

Begin PDF object.

Parameters:
bj Bmeps job.
objno Number of new object.

static void pdf_end_object ( BJ bj  )  [static]

End PDF object.

Parameters:
bj Bmeps job.

static void pdf_file_end ( BJ bj,
int  how 
) [static]

Finish PDF file (write xref table).

Parameters:
bj Bmeps job.
how Ignored.

static void pdf_file_objects ( BJ bj,
int  how 
) [static]

Create PDF object structure.

Parameters:
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.

Parameters:
bj Bmeps job.

static void pdf_file_objects_draft ( BJ bj  )  [static]

Create draft PDF.

Parameters:
bj Bmeps job.

static void pdf_file_objects_normally ( BJ bj  )  [static]

Create objects structure for normal conversion.

Parameters:
bj Bmeps job.

static void pdf_file_start ( BJ bj,
int  how 
) [static]

Start PDF file.

Parameters:
bj Bmeps job
how Ignored.

static void pdf_write_reference ( BJ bj,
unsigned long  n 
) [static]

Write reference to another object.

Parameters:
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.

Parameters:
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.

Parameters:
os Output stream.
f Input file.
fs File size.


Generated on Wed Apr 15 11:57:15 2009 for bmeps by  doxygen 1.5.8