Yes to all. If you control the pdf then you also control the fonts and can skip all this work and use what is already available to write a text string, or whatever, on top or bottom of the page.
Best Regards, Paulo Soares > -----Original Message----- > From: Andy Kriger [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 17:09 > To: [EMAIL PROTECTED] > Subject: RE: [iText-questions] iText question from a new user > > When yor say "fonts are usually subset" - that's if you only include the > used glphys, correct? If we have control over how the PDF is created we > can > include the whole font and avoid that problem, no? > > -----Original Message----- > From: Paulo Soares [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 11:34 > To: 'Andy Kriger'; [EMAIL PROTECTED] > Subject: RE: [iText-questions] iText question from a new user > > > Before you start anything don't forget that fonts are usually subset which > means that you have a good chance of writing a string consisting of > squares. > The second point is that a pdf read has nothing to do with pdf creation > which means that all the fancy iText drawing is not available, you'll have > to issue the commands yourself (no big deal, though). > The steps to go are: > > 1 - read the pdf. > 2 - read the page dictionary and locate the font name (that you'll use > when > writing the text string) and the font name (that you use to identify the > font). A look at the encoding and the widths array may also be required. > 3 - convert the page content to a byte array (up to now its a pointer to > the > file). > 4 - change the content. > 5 - put the content in the page. > 6 - write the pdf using something like PdfEncryptor without the encryption > (or with the encryption and that part is done). > > Best Regards, > Paulo Soares > > > -----Original Message----- > > From: Andy Kriger [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, January 30, 2003 16:16 > > To: [EMAIL PROTECTED] > > Subject: RE: [iText-questions] iText question from a new user > > > > No problem with that. I can read specs :) > > > > Can you be more clear when you say "work at the lowest levels of iText"? > > The > > problem I'm running into is that the javadocs are not very clear about > how > > to access portions of the PDF that I am interested in. > > > > I can read a PDF. I can copy the page. > > > > If fonts are embedded in the PDF, I'd like to get the Fonts used by the > > page > > so I can create text strings using the same font. This is the part that > > I'm > > not sure about. > > > > And then draw those strings directly to the page - that's covered in the > > tutorials. > > > > thx > > > > -----Original Message----- > > From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 30, 2003 11:07 > > To: Andy Kriger; [EMAIL PROTECTED] > > Subject: RE: [iText-questions] iText question from a new user > > > > > > At 10:01 AM -0500 1/30/03, Andy Kriger wrote: > > >Then the next question is are there open-source or free Java libraries > > that > > >allow PDF manipulation in the way I am talking about? > > > > You CAN do what you want with iText - BUT it requires you > > have learn something....Sorry, there is no free ride here :(. > > > > And of the open source/free Java libraries, iText is the most > > complete in terms of PDF manipulation. > > > > > > Leonard > > -- > > > -------------------------------------------------------------------------- > > - > > Leonard Rosenthol > > <mailto:[EMAIL PROTECTED]> > > Chief Technical Officer <http://www.pdfsages.com> > > PDF Sages, Inc. 215-629-3700 (voice) > > 215-629-0789 (fax) > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
