Ashley,

To stop editing you can use this:
http://xml.apache.org/fop/pdfencryption.html

To wrap at 80 chars there are several solutions, but it really depends on your 
situation: as Jay suggested you might be trying to do
something XSL-FO does automatically & better. 

For a preformatted text file, you could also experiment with these 
fo:block-container attributes:
                          white-space-collapse="false"
                          linefeed-treatment="preserve"
                          white-space-treatment="preserve"

Cheers,
Roland

> -----Original Message-----
> From: Ashley Martens [mailto:[EMAIL PROTECTED]
> Sent: Friday, 22 April 2005 4:23 AM
> To: [email protected]
> Subject: RE: Basic help needed
> 
> 
> It's really silly. I'm creating this software to interface another company. 
> That company returns a report as a text file, 
> however, my client does not want his employees to be able to change the text 
> file so he wants it converted to a PDF.
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thu 4/21/2005 2:02 PM
> To: [email protected]
> Subject: Re: Basic help needed
>  
> Well, FO doesn't have any sense of breaking at an arbitrary number of 
> characters. The FO idiom is to fill the line until the end of the line or 
> the end of the text is reached.
> 
> If you really want to break the text every eighty lines, you can do it 
> with XSLT and then put each chunk in its own block. Getting the line break 
> to be at the last space before 80 characters will be a bit more 
> interesting, but not impossible.
> 
> I'm curious why you would want to create a PDF representation of what is 
> usually a pure-text representation method. Why not let PDF do what PDF 
> does well (make paragraphs, have bold for emphasis, and so on)?
> 
> Jay Bryant
> Bryant Communication Services
> (presently consulting at Synergistic Solution Technologies)
> 
> 
> 
> 
> "Ashley Martens" <[EMAIL PROTECTED]> 
> 04/21/2005 12:50 PM
> Please respond to
> [email protected]
> 
> 
> To
> <[EMAIL PROTECTED]>
> cc
> 
> Subject
> Basic help needed
> 
> 
> 
> 
> 
> 
> I trying to convert a simple text document, with no line feeds, into a 
> simple PDF that is wrapped at 80 characters. Can anyone suggest the FO 
> syntax to do this? 
> 
> E-Mail Confidentiality Notification
> 
> -----------------------------------
> 
> This e-mail message (and any associated files) contains information from 
> Associated Software Consultants (ASC), Inc. and is intended only for the 
> use of the individual or entity to which it is addressed and may contain 
> information that is confidential, subject to copyright or constitutes a 
> trade secret. If you are not the intended recipient you are hereby 
> notified that any dissemination, copying or distribution of this message, 
> or files associated with this message, is strictly prohibited. If you have 
> received this message in error, please notify us immediately by replying 
> to the message and deleting it from your computer. Messages sent to and 
> from us may be monitored.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> E-Mail Confidentiality Notification
> 
> -----------------------------------
> 
> This e-mail message (and any associated files) contains information from 
> Associated Software Consultants (ASC), Inc. and 
> is intended only for the use of the individual or entity to which it is 
> addressed and may contain information that is 
> confidential, subject to copyright or constitutes a trade secret. If you are 
> not the intended recipient you are hereby 
> notified that any dissemination, copying or distribution of this message, or 
> files associated with this message, is 
> strictly prohibited. If you have received this message in error, please 
> notify us immediately by replying to the message 
> and deleting it from your computer. Messages sent to and from us may be 
> monitored.
> 

<<attachment: winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to