Red Hat Bugzilla – Bug 429206
Cannot edit line length of PDF documents
Last modified: 2008-05-18 20:06:18 EDT
Description of problem:
I get an error message when I try to set the line length of a PDF document.
Version-Release number of selected component (if applicable):
All the time. I even downloaded and compiled pdfedit 0.3.2 myself. Still get
the same error with setting line length of PDF document.
Steps to Reproduce:
1. Load up a PDF document into pdfedit.
2. Try to change the line length.
I get this error message:
! In script '/usr/local/pdfedit-0.3.2/share/pdfedit/pdfoperator.qs',
! TypeError. 'changeableIterator' undefined or not a function
I expect to be able to set the line length for a PDF document.
Are we talking about line length or line width? You use both above.
I'm talking about the length of a line of text. I was using the wrong feature.
Apparently setLineWidth() alters the thickness of a graphics drawing line.
Here is an example of what I'm trying to do to the line length of a PDF
document. This is globally for all text in a PDF document. Do PDF files have EOL
markers? I guess so.
With an ascii text document in a text editor, if the line wrap length is 80
characters, then any lines that are longer than that will have a CR added to the
end of the line, to make the lines wrap at that line length boundary.
Supposing I have an ascii text document in my editor that has been written with
a line length of 80 characters.
I now decide that I want to make all lines in the document wrap at character
position 60. So I set the new line length in the text editor to wrap lines at
Then I reformat the document in the editor, and the editor reformats the ascii
text by removing the CR characters at position 80 of each line, and then
replaces the CR characters to reformat the ascii text in the appropriate
places, so that the lines now wrap at character position 60.
So in effect the above reformating procedure has reduced the physical width of
the text document by 25%.
This is what I'm trying to do to a PDF document with PDFEdit.
That will allow me to enlarge the font sizes in a PDF viewer such as KPDF,
without loosing text off the RHS of my screen, so I can have a larger font size
without having to scroll each line of the PDF document horizontally.
If there is not a specific bug you are addressing here, I'm going to close this
report. You'd get better results for enhancements or support of current
functionality from upstream.
OK. That's fine with me. :)