t2p.c

changeset 30
35fad7ec7732
parent 29
c904ffd6a1cf
child 32
3aac131058da
     1.1 diff -r c904ffd6a1cf -r 35fad7ec7732 t2p.c
     1.2 --- a/t2p.c	Tue Jan 01 05:41:03 2002 +0000
     1.3 +++ b/t2p.c	Tue Jan 01 06:11:43 2002 +0000
     1.4 @@ -5,7 +5,7 @@
     1.5   *           encoding.
     1.6   *
     1.7   * Main program
     1.8 - * $Id: t2p.c,v 1.10 2001/12/31 21:41:03 eric Exp $
     1.9 + * $Id: t2p.c,v 1.11 2001/12/31 22:11:43 eric Exp $
    1.10   * Copyright 2001 Eric Smith <eric@brouhaha.com>
    1.11   *
    1.12   * This program is free software; you can redistribute it and/or modify
    1.13 @@ -114,7 +114,8 @@
    1.14    return (1);
    1.15  }
    1.16  
    1.17 -boolean open_pdf_output_file (char *name)
    1.18 +boolean open_pdf_output_file (char *name,
    1.19 +			      pdf_file_attributes_t *attributes)
    1.20  {
    1.21    output_file_t *o;
    1.22  
    1.23 @@ -150,6 +151,17 @@
    1.24        return (0);
    1.25      }
    1.26  
    1.27 +  if (attributes->author)
    1.28 +    panda_setauthor (o->pdf, attributes->author);
    1.29 +  if (attributes->creator)
    1.30 +    panda_setcreator (o->pdf, attributes->creator);
    1.31 +  if (attributes->title)
    1.32 +    panda_settitle (o->pdf, attributes->title);
    1.33 +  if (attributes->subject)
    1.34 +    panda_setsubject (o->pdf, attributes->subject);
    1.35 +  if (attributes->keywords)
    1.36 +    panda_setkeywords (o->pdf, attributes->keywords);
    1.37 +
    1.38    /* prepend new output file onto list */
    1.39    o->next = output_files;
    1.40    output_files = o;