> Peter Kullmann wrote:
>
> As an alternative approach for c) one could create tests along
> the following lines: Suppose you want to test left margin
> properties of a block. For this a simple fo file is rendered as
> a bitmap. The bitmap will not be compared to a reference bitmap
> but some eleme
Christian Ziesemer wrote:
>
> Do you know other projects dealing with high quality typesetting with
> Java or if Java 1.5 will bring improvements? I'm thinking about writing
> my diploma thesis about how to extend the current/implement a
> typesetting API for Java.
Batik extends text attributes wi
It might be helpful to take the renderer programmer's view:
- A meaningful renderer interface has to be specified now, i.e. the
representation of pages either in memory or serialized. More supported XSL
properties lead to bigger storage requirements.
- Renderers take over pages consisting from so
Orientations, writing directions, bidi, Asian languages, precise
coordinates, drawing priorities, page caching, paragraph formatting: this
renderer/viewer handles it. With low memory usage.
See: http://mypage.bluewin.ch/huanderegg
Hansuli Anderegg
--
need heavy upgrades.
Hansuli Anderegg
Title: JPS Renderer/Viewer
FOP Renderer/Viewer based on Java Printing System, Graphics2D
Project: JPS Renderer/Viewer
Author: J.U. Anderegg
E-Mail: [EMAIL PROTECTED]
The Java Printing System enables applications to:
Print Java 2D graphics, text a
> Bertrand Delacretaz wrote:
> ...
> > How do you plan to handle RTF styles?
>
> In jfor we defined an extension to XSL-FO (the "jfor-style" attribute)
> to control RTF styles.
>
> I think some form of extension is needed as (AFAIK) the concept of
> styles does not exist in XSL-FO, as it is meant f
> Bertrand Delacretaz wrote
> The whole point of the StructureHandler interface is to be able to
> reuse FOP's "frontend" for structure-based renderers.
> The impact of StructureHandler on the "standard" FOP output formats
> (PDF mostly) is minor, but it allows the FOP "pipeline" to branch
> cle
A FOP renderer cannot support fonts. Physical devices, output systems do
this. But a FOP renderer may allow to map fonts and translate Unicode
characters to bytes using codepages. The user has to take care that font
metrics and it's character sets are accurate enough for all target devices
and bett
The current FOP is not fit for i18n, directions, area orientations and does
not even support a dotted line. Renderes too. Design correct data objects in
the first place instead of fancy control mechanisms.
- what do pipelines look like?
- are there really pipelines or are partial document fragments
> Glen Mazza wrote:
> FOP's goals should be (1) to be compliant/accurate with the spec
The Area Tree is an implementation specification: either the XSL editors
remove it from the specs or they specify it precisely as a portable,
device-independent print file format. I ran Chuck Paussa's FO schema
> Peter B. West wrote:
>
> You seem to be familiar with some of the
> swing.javax.text classes.
Yes, as a user of these classes: no need to know internals.
> Can you sketch the approach out in a bit more
> detail? Have you looked at percentages?
>
See a description javax.swing.text: Interface
The Java Printing System enables applications to:
- Print Java 2D graphics, text and images.
- Control document-composition functions such as soft collating, reverse
order printing, and booklet printing.
- Invoke printer-specific functions such as duplex (two-sided) printing and
stapling.
- Print
A couple of new functions to FOP's PDF rendering:
o SVG's and images as page fore-/backgrounds with transparency control
o SVG rendering as image
o Image resolution control by the user
o Caching on the PDF way: store/write a resource once - reuse it
o Open Actions
These add-ons are programmed as
Hi Keiron,
> On Sun, 2002-12-22 at 02:18, Kevin O'Neill wrote:
> > Is the paged XML a new or existing format?
>
> A new format for now at least.
>
> It is possible there will be a w3c defined format.
Please give some pointer to w3c activities in this area. What is this thing
exactly supposed to d
Whatever the motivation of Sun was, FOP has to be postitioned in the IT
world.
What runs in which environment? Which output types are supported?
- Adobe announced PDF support (in a Windows environment?)
- IBM announced AFP support in a Java environment
- Sun's XSL:FO supports PDF (in a UNIX or Wi
> Gorka Echevarría wrote:
>
> > Anybody knows how can I disable the save button on Acrobat Reader?
Ask this question in a PDF forum!
The next question will be: is FOP able to output PDF documents with the
required properties? I guess AcroScripts will do the job.
Hansuli Anderegg
For details see:
see http://mypage.bluewin.ch/huanderegg
Topics of general interest:
- use of Jeremias Maerki's extension sample: for PDF bookmarks, JavaScripts,
barcodes?
- Java Image I/O
- decoupling the renderer
Hansuli Anderegg
> On Tue, 2002-11-12 at 12:00, Kevin O'Neill wrote:
> > > I just added a Form XObject but it needs some work (eg. bounds).
> >
> > How do you intend to pass xobject hits from the fo processor. I had
> > thought about a fop specific attribute that was a hint on block level
> > objects.
What does yo
Considering PDF only, I see prefabricated image XObjects as a very powerful
feature.
Extracting image XObjects from PDF files and storing them for use by the
renderer brings two advantages:
a) saves CPU and memory at a maximum
b) the user controls image representation/handling in PDFs.
Writing
This is how it used to work:
o anywhere in FOP formatting
- load image, if same URL was not loaded before and find out the space
needed for the image.
- keep list of processed files.
o PDF Renderer:
- generate XObject, if XObject of same URL was not generated before. Delete
image buffer: partia
Hi Paul,
this is how Acrobat embeds files. Follow the indirect PDF object references:
5 0 obj
<<
/Pages 2 0 R
/Type /Catalog
/Metadata 19 0 R
/Names 17 0 R <<<--- add this entry
>>
endobj
17 0 obj <<<--- add this object
<<
/EmbeddedFiles 18 0 R
>>
endobj
18 0 obj <<<--- add this object
<<
/Name
Hi Paul,
Do you want to embed the XSL:FO input in the PDF document?
If this is so:
o "embedding files in PDF" is the thing to do, but quite a challenge to
build into the PDF renderer.
o out of pure curiosity: why?
Hansuli Anderegg
--
Why not a fast, flexible and reliable solution? 3 things are needed:
o Java routines to calculate barcode rectangles and label areas depending
from barcode type and its parameters. Possibly such routines are freely
available. Otherwise: give me the specs, I will write the code (the nowadays
popul
Hi Kevin,
Reference XObjects
Acrobat Readers by Adobe do not support reference XObjects - Acrobat
neither.
Imposition
o What do you exactly want to program? I suppose a kind of "preprinted
form". Imposition in the printing industry is something else - at least in
German.
o What is the extern
o Are there specified packages, classes to be programmed? Are the
interfaces/interface objects specified?
o Are prerequisite packages or test drivers available?
o Are the basic formatting rules documented: how are (collapsing) borders,
margins, spaces added and adjusted in area calculations,passed
from PDF Reference p.319
Standard Type 1 Fonts
The PostScript names of 14 Type 1 fonts, known as the standard fonts, are as
follows:
1 Helvetica"Sans-Serif"
2 Helvetica?Bold
3 Helvetica?Oblique
4 Helvetica?BoldOblique
5 Times?Roman "Serif"
6 Times?Bold
7 Times?Italic
Step 1: Specify what has to be done!
What are the requirements? What has to be supported? Which operating
environments? I'm afraid there is no common understanding, i.e. a fairly
precise specification in a few sentences, for these recent examples below.
Step 2: How can the specified requirement
To attack the problem:
o split the job into 2 steps:
- XSL transformation writes XSL:FO to a file
- FOP formats the file
o use another renderer: text e.g.
o vary the input
- reduce the volume: when does it blow up?
- eliminate distinct elements
You will pretty s
Let's talk component software (or blame monolithic MicrosSoft)!
- Formatting has to be separated strictly from rendering
o A clean and stable interface has to be defined (why not by data
representations of powerful PDF?)
o The renderer has to control the processing sequence.
- FO
Rendering RTF from the FOP area tree will produce a document edited without
template (.dot).
RTF is a revisable format - not a formatted document format. XSL:FO is an
extensive formatting language without any kind document elements (like
Adobe's e-Book), macros or stylesheets in the original mean
XREF
PDF objects have to be written PHYSICALLY in ascending sequence of the PDF
object ID's. This is a requirement of the present XREF handling. If tis
condition is fulfilled and PDF syntax is correct, there is most likely a
length in error.
Page viewport in PDF is the /Cropbox
Cropbox:
x = le
Keiron wrote:
>- added transparency for shapes and alpha mask for images
well, what has to be transparent? Background images or overlaying text?
- 82 pages: Transparency in PDF, Technical Note #5407, Adobe Developer
Technologies
>- Outputs pdf objects immediately
>Unortunately I have broken the
Inputs
o BMP, GIF, TIF, JPG, FPX, PNM
o SVG instream and external file
Output
o JPEG (Acrobat Reader interprets the complete image file within a PDF file
= no transformation = no lossy info loss)
Features
o colors: RGB, Gray, CMYK
o svg, image processing isolated in renderer XObject class
o litt
The good library is here: Java Advanced Imaging. In a few days I will have a
sample PDF renderer using it.
o BMP, GIF, TIF, JPG, FPX, PNM and SVG are processed.
o Immediate file operations: 1 image in memory at a time
o caching, reuse by PDF features
Hansuli Anderegg
Copy from Adobe Knowledge Base:
PDF File Prints Off-Center to HP 1120c, Epson Stylus 860, and Epson Stylus
656
Issue
When you print a PDF file from an Adobe Acrobat 4.0 or later product (such
as Acrobat or Acrobat Reader) to a Hewlett-Packard (HP) 1120c printer, an
Epson Stylus 860 printer, or
Guten Tag,
schicken Sie mir die Input xsl:fo? Dann kann ich den Fall einmal anschauen.
Mit freundlichen Gruessen
Hansuli Anderegg
Tel. 01-381-0207
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [
In order to learn the page geometry I built a trace into the PDFRenderer.
Then I found that SVG can be written easily at the trace points. An analysis
of the results follows.
Coordinates (o) received by the
View the PDF document with a Browser, e.g Internet Explorer. Keep it open
during your test session and reload the file when a new document version is
written. There are no file locking/sharing problems, no need to change file
names. I suppose print fidelity is kept.
Hansuli Anderegg
--
Matthew Brook O'Donnell schrieb:
>>
>> cause a 'fatal PDF error' in PitStop, even without the modification
>> of (_data.size() + 1) to _data.size() in the PDFStream class that Hansuli
>> proposed.
>>
>> However, I haven't been able to produce PDF that pass with 0.20.3 (even
with
>> the proposed pa
Jeremias Maerki wrote:
I wonder. What exactly would you like to tell us with this mail? I don't
get it.
> The coordinates x/y have to be defined: outer, inner, center of the border
> line?
How does a renderer programmer know what coordinate parameters stand for
exactly? Most likely he will prin
The coordinates x/y have to be defined: outer, inner, center of the border
line?
PDF renderer FOP-0.20.1
o draws a box with 4 filled rectangles - each border line is a filled
rectangle. The SVG trace below demonstrates this.
o 4 calls to method addFilledRect(int x, int y, int w, int h, PDFPathP
The /Length below tells the length of the stream: it's 104 bytes and not
105.
I made a patch: is the attached PDF OK? Please check!
class: PDFStream
method: output(OutputStream stream): Why is 1 added? Is it correct under
other circumstances?
old code: write (_data.size() + 1)
new code: write _d
Matt, Matthew,
can you send me a sample doc in error - as small as possible? I will have a
look at it.
Hansuli Anderegg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
Inserting JPEG into a PDF file is a simple file copy - given the URI,
bits/pixel and color model. The latter are coded within JPEG files. PDF
stores the image once and allows multiple references to it. Is programmed
caching superior to the caching of the file system?
>From PDF view, memory = (JPE
These notes apply to under FOP 0.20.1:
o FOP images are kept as XObjects until the end of job, because
- the image is written to the output file
- and the complete image object is added to the XObjects vector in order to
build the ressource dictionary at the end of the PDF docume
J. Pietschmann wrote:
are
> Rectangular areas, perhaps indented and with border, padding
> and other individual traits, nested into a rectangular area.
I understand setting traits, properties. How about page layout, setting
inline and baseline postitions? Does it imply a unconditional CRLF?
W
>From the external view means a rectangle containing formatted text,
something like a paragraph.
o What do as children of : mean for the end user?
o What's teheffect of 's in combination with tag element TEXT like
, , , , ?
o When is a required?
Hansuli Anderegg
Tests with FOP 0.20.1 and PDF output:
o Cells
- Define a rectangle with geometric lines as sides: width = 0.
- Padding on the cell element offsets text within the cell rectangle.
- Border rectangles are centered over the sides of the cell rectangle.
Adjacent cells put both
By writing renderer code with FOP 0.20.1 I observed :
A basic link
link wordst
arrives 3 times in the PDFrenderer asynchronously, without any connection
between each other.
1. as word "link"
2. as word "words"
3. as annotation rectangle
This is OK with PDF. But there is an assumption on the o
At least 2 aspects are to be considered: document design/generation and
operation
o SVG
- document design: do you have a tool?
- operation: uses Batik starts new processes and generates images
o xsl:fo table with borders, backgrounds
- document design: type xsl:fo on the
Questions:
o A basic-link in PDF means an annotation - an annotation defines a
rectangle. What's the effect, if the annotation text breaks to a new line?
If the basic-link contains more blocks and children?
o Middle Easterner write left-to-right, top-to-bottom. Far Easterners write
from top-to-b
Specification Request
I programmed multilevel outlines, form fields, Javascripts with the PDF
classes of Fop-0.20.1. These experiments, attacking from the back end, lead
to these conclusions:
1. PDF Extensions can be added to the PDF classes on a clean way. The trick
is when/where to insert PDF
By looking at PDF I think a link has to be coded like this (copy in the
samples):
link_rectangle
o "destination": an URI, where it makes a difference if there is an
extension .pdf or not
o link_rectangle: the rectangle on the page to click on
So, if you want to have an image in the rectangle:
Attached I send a small demo document generated by an adapted FOP system. If
attachements do not work in the forum, send me a request by e-mail.
If there is interest I will compile the inputs, some comments and a list of
related documents. PDF JavaScript and Form Fields cover a broad range of
ap
Forms and JavaScript in PDF may be about as complex as xsl:fo. To get a
feeling for the learning, design and development effort see:
Acrobat JavaScript Object Specification, Version 5.0.5, Technical Note #
5186
Chapter Quick Reference Forms: 20 pages illustrated with Acrobat menues
Keyword "Acro
Hi Keiron,
Let's fix a DESIGN GOAL. What can be realized in which time frame? I see 2
ways to go ahead:
1. Low level implementation using native PDF syntax: users have to learn PDF
syntax and to some extent PDF file structure. They can try experimentally
everything with the risk of invalid PDF i
I programmed PDF form fields into Fop-0.20.1. PDF form fields have an
annotation representation in PDF files with the subtype "widget". So I
patched the external-link within the renderer code to process form fields.
Additionally a PDF fields object had to be added to the PDF stream and a
reference
57 matches
Mail list logo