|
|
Up |
|
|
  |
Author: HotkittyHotkitty Date: May 6, 2008 19:04
First and foremost thanks for all the help I've received on this
board, especially Gunnar who keeps this place running!
I've come a long way in my code and am trying to format some text and
then put it into a nice pdf file. My problem is putting the formatted
text into the pdf and for it to display correctly. I am just trying to
justify the text and then set the margins. I can put the text in the
pdf and it looks like it is trying to justify it but it won't wrap to
the next line. I've looked at the documentation for both the
Text::Autoformat and PDF::API2 modules but can't seem to figure it
out.
I have 2 questions: 1. What am I doing wrong in that the text will
appear fine when I "print" it but that it won't appear correctly in
the pdf file? 2. Also, if the text is more than 1 page, how can I get
it to automatically create a new page and continue onto the newly
created page?
My code:
#!/usr/bin/perl
use warnings;
|
| Show full article (2.42Kb) |
|
| | 9 Comments |
|
  |
Author: Gunnar HjalmarssonGunnar Hjalmarsson Date: May 7, 2008 05:10
hotkitty wrote:
> First and foremost thanks for all the help I've received on this
> board, especially Gunnar who keeps this place running!
Thanks, but this place is kept running by quite a few helpful contributors.
> I've come a long way in my code and am trying to format some text and
> then put it into a nice pdf file.
I pass this one.
|
| |
|
| | no comments |
|
  |
Author: Rob DixonRob Dixon Date: May 7, 2008 05:40
hotkitty wrote:
> First and foremost thanks for all the help I've received on this
> board, especially Gunnar who keeps this place running!
>
> I've come a long way in my code and am trying to format some text and
> then put it into a nice pdf file. My problem is putting the formatted
> text into the pdf and for it to display correctly. I am just trying to
> justify the text and then set the margins. I can put the text in the
> pdf and it looks like it is trying to justify it but it won't wrap to
> the next line. I've looked at the documentation for both the
> Text::Autoformat and PDF::API2 modules but can't seem to figure it
> out.
>
> I have 2 questions: 1. What am I doing wrong in that the text will
> appear fine when I "print" it but that it won't appear correctly in
> the pdf file? 2. Also, if the text is more than 1 page, how can I get
> it to automatically create a new page and continue onto the newly
> created page?
>
> My code: ...
|
| Show full article (4.10Kb) |
| no comments |
|
  |
Date: May 7, 2008 07:18
hotkitty schreef:
> #!/usr/bin/perl
Missing:
use strict;
> use warnings;
> $main_text->text("$newtext");
Why quoted?
--
Affijn, Ruud
"Gewoon is een tijger."
|
| |
| no comments |
|
  |
Author: HotkittyHotkitty Date: May 8, 2008 18:31
On May 7, 8:40Â am, rob.di...@ gmx.com (Rob Dixon) wrote:
> hotkitty wrote:
>> First and foremost thanks for all the help I've received on this
>> board, especially Gunnar who keeps this place running!
>
>> I've come a long way in my code and am trying to format some text and
>> then put it into a nice pdf file. My problem is putting the formatted
>> text into the pdf and for it to display correctly. I am just trying to
>> justify the text and then set the margins. I can put the text in the
>> pdf and it looks like it is trying to justify it but it won't wrap to
>> the next line. I've looked at the documentation for both the
>> Text::Autoformat and PDF::API2 modules but can't seem to figure it
>> out.
>
>> I have 2 questions: 1. What am I doing wrong in that the text will
>> appear fine when I "print" it but that it won't appear correctly in
>> the pdf file? 2. Also, if the text is more than 1 page, how can I get
>> it to automatically create a new page and continue onto the newly
>> created page?
> ...
|
| Show full article (4.84Kb) |
| no comments |
|
  |
Author: Rob DixonRob Dixon Date: May 9, 2008 08:50
hotkitty wrote:
> On May 7, 8:40 am, rob.di...@ gmx.com (Rob Dixon) wrote:
>> hotkitty wrote:
>>> First and foremost thanks for all the help I've received on this
>>> board, especially Gunnar who keeps this place running!
>>> I've come a long way in my code and am trying to format some text and
>>> then put it into a nice pdf file. My problem is putting the formatted
>>> text into the pdf and for it to display correctly. I am just trying to
>>> justify the text and then set the margins. I can put the text in the
>>> pdf and it looks like it is trying to justify it but it won't wrap to
>>> the next line. I've looked at the documentation for both the
>>> Text::Autoformat and PDF::API2 modules but can't seem to figure it
>>> out.
>>> I have 2 questions: 1. What am I doing wrong in that the text will
>>> appear fine when I "print" it but that it won't appear correctly in
>>> the pdf file? 2. Also, if the text is more than 1 page, how can I get
>>> it to automatically create a new page and continue onto the newly
>>> created page?
>>> My code:
>>> #!/usr/bin/perl ...
|
| Show full article (6.22Kb) |
| no comments |
|
  |
Author: HotkittyHotkitty Date: May 10, 2008 08:05
On May 9, 11:50Â am, rob.di...@ gmx.com (Rob Dixon) wrote:
> hotkittywrote:
>> On May 7, 8:40 am, rob.di...@ gmx.com (Rob Dixon) wrote:
>>>hotkittywrote:
>>>> First and foremost thanks for all the help I've received on this
>>>> board, especially Gunnar who keeps this place running!
>>>> I've come a long way in my code and am trying to format some text and
>>>> then put it into a nice pdf file. My problem is putting the formatted
>>>> text into the pdf and for it to display correctly. I am just trying to
>>>> justify the text and then set the margins. I can put the text in the
>>>> pdf and it looks like it is trying to justify it but it won't wrap to
>>>> the next line. I've looked at the documentation for both the
>>>> Text::Autoformat and PDF::API2 modules but can't seem to figure it
>>>> out.
>>>> I have 2 questions: 1. What am I doing wrong in that the text will
>>>> appear fine when I "print" it but that it won't appear correctly in
>>>> the pdf file? 2. Also, if the text is more than 1 page, how can I get
>>>> it to automatically create a new page and continue onto the newly
>>>> created page?
>>>> My code: ...
|
| Show full article (6.85Kb) |
| no comments |
|
  |
Author: HotkittyHotkitty Date: May 10, 2008 16:22
On May 9, 11:50Â am, rob.di...@ gmx.com (Rob Dixon) wrote:
> hotkittywrote:
>> On May 7, 8:40 am, rob.di...@ gmx.com (Rob Dixon) wrote:
>>>hotkittywrote:
>>>> First and foremost thanks for all the help I've received on this
>>>> board, especially Gunnar who keeps this place running!
>>>> I've come a long way in my code and am trying to format some text and
>>>> then put it into a nice pdf file. My problem is putting the formatted
>>>> text into the pdf and for it to display correctly. I am just trying to
>>>> justify the text and then set the margins. I can put the text in the
>>>> pdf and it looks like it is trying to justify it but it won't wrap to
>>>> the next line. I've looked at the documentation for both the
>>>> Text::Autoformat and PDF::API2 modules but can't seem to figure it
>>>> out.
>>>> I have 2 questions: 1. What am I doing wrong in that the text will
>>>> appear fine when I "print" it but that it won't appear correctly in
>>>> the pdf file? 2. Also, if the text is more than 1 page, how can I get
>>>> it to automatically create a new page and continue onto the newly
>>>> created page?
>>>> My code: ...
|
| Show full article (6.90Kb) |
| no comments |
|
  |
Author: Rob DixonRob Dixon Date: May 11, 2008 05:53
hotkitty wrote:
>
> Well, it should be a pretty straightforward thing, right?
No. Sizing and placing text in a page isn't trivial, and people pay huge amounts
of money for DTP software to achieve it conveniently.
> There has to be someone, somewhere that has taken text and created a pdf file
> with more than 1-page, right? That's all I am looking to do.
I am pretty sure there is someone like that, but the solution is simple and
unlikely to be published. When you find a solution, will you put it on the Internet?
The coordinate and measurement system is unfamiliar at first, but you must
understand it fully for you to be able to maintain your software. A half-day's
experimentation will get it down for you, and after that you will be in control
of what you write.
Rob
|
| |
| no comments |
|
  |
|
|
  |
Date: May 11, 2008 06:16
hotkitty schreef:
> I've been reading through the modules and the link you provided but it
> seems pretty involved. I don't think it should be very difficult: all
> that I am trying to do is create a multi-page PDF file with text in
> it. Isn't there an easier way to do that?
Alternatives to consider:
- use a printerdriver to create a .ps (PostScript) file, and run ps2pdf.
- use a printerdriver to directly create a .pdf
- use HTML:HTMLdoc
--
Affijn, Ruud
"Gewoon is een tijger."
|
| |
| no comments |
|
RELATED THREADS |
  |
|
|
|
|
|