Hello,
We create pdf in batch-modus. We have dynamic data and a background
layer. We use working with txt2pdf.
To create such a template, we have to use the pdf syntax. Now i have
some text between BT/ ET Tags. It looks like this.
BT
40 640 TD
/F5 9 Tf
(Dear Sirs,) Tj
0 -9 TD
( ) Tj
0 -9 TD
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Tj
0 -9 TD
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Tj
0 -9 TD
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Tj
0 -9 TD
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Tj
0 -9 TD
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Tj
0 -9 TD
( ) Tj
ET
Is it possible to write a multiline text object with a linefeed
character at the end of every line? Something like this? How is the
linefeed character?
0 -9 TD
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Tj
Maybe someone can help me.
Thank's in advance.
Rene
|
|
0
|
|
|
|
Reply
|
bayside
|
8/24/2004 10:22:18 AM |
|
bayside@bluemail.ch wrote:
>Is it possible to write a multiline text object with a linefeed
>character at the end of every line?
No.
----------------------------------------
Aandi Inston quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.
|
|
0
|
|
|
|
Reply
|
quite
|
8/24/2004 10:27:37 AM
|
|
HI,
My customers, using OctoTools can modify their text streams, images, and
constants dynamically as they map the data onto a defined template thus
eliminating the problem, but OctoTools, which includes a GUI based template
designer, is aimed at medium to high volume throughput and is avialble
commercially. For more info if interested go to www.octotools.com or email
me at larry "at" jbmsystems "dot" com. Thanks and I hope this is of help.
|
|
0
|
|
|
|
Reply
|
Larry
|
8/24/2004 1:59:48 PM
|
|
Aandi Inston schrieb:
> bayside@bluemail.ch wrote:
>
>
>>Is it possible to write a multiline text object with a linefeed
>>character at the end of every line?
>
>
> No.
Well, short answers almost never cover the full truth. There are two
operators for this purpose, the single quote operator and the T* operator.
Here is an example:
%--------------------------------------------------------------------
0 0 0 rg % choose a text color
BT
/F1 20 Tf % select font and font size
1 0 0 1 25 762 Tm % set text matrix, move to 25 762
24 TL % set the distance between lines to 24
(This is my first line, that)'(that is contined here. But)'(this is
just a silly example.)'
% finally, show three lines of text
ET
%--------------------------------------------------------------------
This will output:
This is my first line, that
that is contined here. But
this is just a silly example.
So, the "line break" sequence would be ")'(" without the double quotes.
Unfortunately, you can't have kerning with the single quote operator, as
the single tick operator is a shortcut for "T* string Tj". The Tj is
hardcoded there.
Therefore, for text with kerning, you can use the T* operator with the
TJ operator.
%--------------------------------------------------------------------
0 0 0 rg % choose a text color
BT
/F1 20 Tf % select font and font size
1 0 0 1 25 562 Tm % set text matrix, move to 25 562
24 TL % set the distance between lines to 24
[(T)130(his is my first line, that)] TJ T* [(that is contined here.
But)]TJ T* [(this is just a silly example.)] TJ
% finally, show three lines of text
ET
%--------------------------------------------------------------------
I simply added a kern (130) to show the principle.
In this case, you can use ")] TJ T* [(" (without the double quotes) as
"line break" sequence.
Both examples are tested and work.
You can find all this in the PDF Reference, the specification by Adobe,
in the section on text positioning .
Ralf
--
Ralf Koenig
Wissenschaftlicher Mitarbeiter an der
Professur Rechnernetze und verteilte Systeme
TU Chemnitz, Zi. 1/B320, Tel. 0371-531-1532
|
|
0
|
|
|
|
Reply
|
Ralf
|
8/25/2004 4:45:29 PM
|
|
|
3 Replies
789 Views
(page loaded in 0.101 seconds)
|