Eric Summkeller wrote:
> That's it. I tested it with another Font and then it works. I hope that this
> could be a reason why I can't implement such a solution.
If this /F1 font is the only one available in your PDF,
you could add (and use) another font.
There's an example here that gives some hi
Bruno Lowagie (iText lowagie.com> writes:
>
> Bruno Lowagie wrote:
> Now I understand!
> /F1 is some special font, and you don't know how the characters
> are encoded... Maybe the font referred to by /F1 only contains
> a subset of the complete font, in which case the glyph for the
> character
Eric Summkeller wrote:
> My problem now is, that I don't know how I convert the String "(2)" to the
> code "(\u\u0015)". Pherhaps this is something easy but I don't know how.
> If I replace my Stream into the following, the Template has no content in the
> new Document.
>
> My new Stream:
>
>
> Bruno Lowagie wrote:
>
> You know the total number of pages you want to be
> printed. Are you telling me you don't know how to
> compose a String and convert it to a byte[]???
>
> I really, really don't understand your question(s).
> This is not the first time I have no clue when you
> ask s
Eric Summkeller wrote:
> If I debug your code, your Stream contains a not coded page number.
>
> Your Stream as String:
> "BT\n/F1 12 Tf\n1 0 0 1 0 0 Tm\n(10)Tj\nET\n
Yes, this is a stream with PDF syntax as described
on page 43 (Listing 2.2).
> My Stream as String:
> "BT\n/F1 10 Tf\n1 0 0 rg\n1
> Bruno Lowagie wrote:
>
> We're working at the lowest level here.
> We're not using PdfTemplate, Image, Chunk, anymore.
> What we're doing is getting the 'form XObject' (we prefer calling
> it PdfTemplate to avoid confusion with forms) and replace the
> stream. You don't have to manipulate the St
Eric Summkeller wrote:
> I have one question to the code that you send me. I tried this code, but the
> Stream that I get from the PdfReader contains the content number in Unicode.
> (example:(\u\u0014))
You'll have to explain what you mean by this.
> If I replace this with the new number n
What does it need to be? Binary, Base 10 (decimal), hex?
>From: Eric Summkeller <[EMAIL PROTECTED]>
>Reply-To: Post all your questions about iText here
>
>To: itext-questions@lists.sourceforge.net
>Subject: Re: [iText-questions] Coordinates of a PdfTemplate!
>Date: T
>
> Bruno Lowagie wrote:
>
> The problem with 'solutions' like this, is that it can
> go wrong on so many places, and I don't want to be the
> one 'responsible' to fix those problems
> br,
> Bruno
>
I understand that! ;-)
I have one question to the code that you send me. I tried this code, bu
Eric Summkeller wrote:
> I understand that you don't want to use such solutions.
The problem with 'solutions' like this, is that it can
go wrong on so many places, and I don't want to be the
one 'responsible' to fix those problems ;-)
br,
Bruno
> Bruno Lowagie wrote:
>
> The reason why I am reluctant to help is because what you are
> trying to achieve is generally considered to be of very bad taste.
> However, you'll find an example in attachment where I created
> a page saying "page 1 of 10" with "10" added as a PdfTemplate.
> In this (
Eric Summkeller wrote:
Sorry but I need your help again!
The reason why I am reluctant to help is because what you are
trying to achieve is generally considered to be of very bad taste.
However, you'll find an example in attachment where I created
a page saying "page 1 of 10" with "10" added as
>
> Bruno Lowagie wrote:
>
> Sorry, but I don't have the time,
> you'll have to Google for the answer.
> It's out there somewhere.
> br,
> Bruno
>
Hello Bruno!
Sorry but I need your help again! I found an example to find a PdfTemplate in
a Document. This example was in the mail list. In this
>Reply-To: Post all your questions about iText here
>
>To: Post all your questions about iText here
>
>Subject: Re: [iText-questions] Coordinates of a PdfTemplate!
>Date: Thu, 08 Mar 2007 15:24:40 +0100
>
>Rick DeFazio wrote:
> > Thanks... no other way to find out th
Rick DeFazio wrote:
> Thanks... no other way to find out the original coords of the imported page
> then?
Please read page 520 of the book:
It explains that form XObjects (we call them PdfTemplates,
because the word form might confuse people) are referenced
in the page content stream like this:
>
> Bruno Lowagie wrote:
>
> Sorry, but I don't have the time,
> you'll have to Google for the answer.
> It's out there somewhere.
> br,
> Bruno
>
OK! Thanks for your help! I will see what I can find.
br,
Eric
-
Take S
Thanks... no other way to find out the original coords of the imported page
then?
>From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
>Reply-To: Post all your questions about iText here
>
>To: Post all your questions about iText here
>
>Subject: Re:
Rick DeFazio wrote:
> Is there a way to center a pdfTemplate into a new page?
Wrap it into an Image.
br,
Bruno
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chan
Eric Summkeller wrote:
> Sorry, but I don't know how?
Sorry, but I don't have the time,
you'll have to Google for the answer.
It's out there somewhere.
br,
Bruno
-
Take Surveys. Earn Cash. Influence the Future of IT
Join Sour
Is there a way to center a pdfTemplate into a new page?
>From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
>Reply-To: Post all your questions about iText here
>
>To: Post all your questions about iText here
>
>Subject: Re: [iText-questions] Coordinates of a Pd
Bruno Lowagie wrote:
>
> I mean that I don't see where you remove the existing page number
> and replace it with another number.
> I also don't know if you actually replace the form XObject stored
> in PdfReader.
> br,
> Bruno
>
That's my problem. I don't know how I would replace the template an
Eric Summkeller wrote:
> I don't understand what you mean? Should I create a new template?
I mean that I don't see where you remove the existing page number
and replace it with another number.
I also don't know if you actually replace the form XObject stored
in PdfReader.
br,
Bruno
--
Bruno Lowagie wrote:
>
> You aren't REPLACING the PdfTemplate, are you?
> br,
> Bruno
>
I don't understand what you mean? Should I create a new template?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceF
Eric Summkeller wrote:
> At the moment I read the base document with the total page num on each page.
> For each page I check if there a some templates. If there are some templates
> on this page I take them and change the text in it. But the total page num
> doen't change.
You aren't REPLACING
> Bruno Lowagie wrote:
>
> OK. And do you know which PdfTemplate has the page
> number you want to change? If so, you could change
> the content of the template (not the ideal way to
> do it, but probably the best one available).
>
Now I read the section in chapter 18 in which you explain why it
Eric Summkeller wrote:
> I need these coordinates because I want to stamp a concatenated Pdf document.
> This document consist of two documents. In one of them I wrote the total page
> num in each created PdfTemplate during the creation.
Is there no way you can regenerate this PDF?
Because chang
> Bruno Lowagie wrote:
>
> That's very difficult if different CTMs are involved.
> Why do you need to know the coordinates?
> Isn't there another way to achieve what you want to do?
> br,
> Bruno
>
I need these coordinates because I want to stamp a concatenated Pdf document.
This document consi
Eric Summkeller wrote:
> How could I get the coordinates where a PdfTemplate was placed in a Document?
That's very difficult if different CTMs are involved.
Why do you need to know the coordinates?
Isn't there another way to achieve what you want to do?
br,
Bruno
-
How could I get the coordinates where a PdfTemplate was placed in a Document?
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT &
29 matches
Mail list logo