Dave
11/8/2005 4:15:00 AM
in the main() method of PDFViewer, I tried :
PDFViewer pdf = new PDFViewer(null, null);
TextBuffer tb = new TextBuffer();
int catalogObj, infoObj;
int xrefOffset;
pdf.writePDFHeader(tb.getText());
catalogObj = pdf.writePDFCatalog(tb);
infoObj = pdf.writePDFInfoObject('From Job', 'PV', 'Test');
xrefOffset = pdf.writePDFXref();
pdf.writePDFTrailer();
pdf.writePDFStartXRef(xrefOffset);
tb = pdf.buf();
tb.toFile('c:\\ttt1.pdf');
the buf() method is my method added to get the buffer. But it doesn't work,
have any advise ??