annot.put(new PdfName("Subj"), new PdfString("This is the subject",
PdfObject.TEXT_UNICODE));
annot.put(PdfName.CONTENTS, new PdfString("This is the description",
PdfObject.TEXT_UNICODE));
annot.put(PdfName.T, new PdfString("This is the author",
PdfObject.TEXT_UNICODE));> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Roger Misteli > Sent: Tuesday, March 15, 2005 9:44 AM > To: [email protected] > Subject: [iText-questions] setMKxxxx > > Hiyas > > Just a little question: What are the PdfAnnotation.setMKxxx() methods > used for? > Or, differnetly asked, if I add an attachement using this code: > > public void embedFile(File file, int pX, int pY, String > title, int embeddedFileCounter) > throws IOException { > FileInputStream fis = new FileInputStream(file); > byte[] buffer = null; > try { > buffer = new byte[fis.available()]; > fis.read(buffer); > } > finally { fis.close(); } > PdfAnnotation annot = > PdfAnnotation.createFileAttachment(writer, new > com.lowagie.text.Rectangle(pX-12, pY - 10, pX, pY), > title, buffer, "", > "subreport_" + embeddedFileCounter + ".pdf"); > writer.addAnnotation(annot); > } > > is it possible to set the author, subject and description fields that > appear in Acrobat when I riught click on an attachment and select > Properties (on the General tab) using iText ? > > Rog > > /* > * Roger Misteli - ABACUS Research AG > * email: [EMAIL PROTECTED] > * Klingon function calls do not have 'parameters' - they > have 'arguments'.. > * and they ALWAYS WIN THEM. > */ > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
