Re: forceloading batik svg

2002-05-24 Thread Keiron Liddle

On Thu, 2002-05-23 at 20:48, Paul Reavis wrote:
 This is probably a question for the batik list, but I'm not on that at
 present so thought I'd ask here. 

I'm sure they would know better...

 What's the best way to get an SVG loaded so I can draw it to a
 buffered image? I basically want to load an SVG and turn it into a
 raster icon. I'm trying to use JSVGComponent but the loading is so
 multithreaded I can't figure it out at all. Just trying to listen does
 nothing - I wait forever for a loaded event.
 
  It seems similar to the annoying Java default image loading
 behavior where it incrementally loads images - great for web-like
 incremental drawing effects, but annoying if you just want to load an
 image, right now, no questions.
 
 I think it might be waiting on something - a paint() command or
 similar - to actually load - lazy loading, in other words.

As far as I know the JSVGCanvas is really for viewing the document. This
means it also sets up a bunch of event handlers and threads.

This is the sort of code that you need (without error handling and other
things).

GVTBuilder builder = new GVTBuilder();
BridgeContext ctx = new BridgeContext(userAgent);
GraphicsNode root = builder.build(ctx, doc);
float w = (float)ctx.getDocumentSize().getWidth();
float h = (float)ctx.getDocumentSize().getHeight();
Graphics2D graphics = create graphic from buffered image...
root.paint(graphics);





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




Structure Handlers - RTF Renderer

2002-05-24 Thread Keiron Liddle

Hi,

I have had a look at the structure handling concept in particular with
reference to the rtf renderer.

The idea is to use a structure handler class that is available to the FO
tree and replaces the current position of the StreamRenderer.

This structure handler will have a number of methods for the start and
end of elements like block, table, list item etc. and others for
external graphic etc. It will pass appropriate information mostly the
current fo object.

This should make it possible for the rtf handler to get the appropriate
information from the FO tree during the creation of the FO tree.

Currently the StreamRenderer does a very limited version with start, end
document and end page sequence. This could become a subclass of the
structure handler where it will only use a few methods (probably should
rename it to RenderHandler).
This should also help us to improve the normal rendering process as
well.

Does this sound like a suitable approach? Will it make the rtf rendering
possible (Bertrand?)?

Keiron.


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




Re: AW: Running Prefligh PDF tools on PDF files produced by FOP

2002-05-24 Thread Christian Geisert

J.U. Anderegg schrieb:
 Matt, Matthew,
 
 can you send me a sample doc in error - as small as possible? I will have a
 look at it.

Maybe this is related to the following bug:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9054

 Hansuli Anderegg

Christian


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




eps preview - question

2002-05-24 Thread Torsten Erler

Hi all

I've a little(?) problem on previewing eps graphics in an awt-rendered
window.

I know that acrobat reader doesn't preview emebedded postscript. But have I
misunderstood, I thought fop does the preview on screen!? I'm using
'external-graphic' for that. My rendered page does preserve the space
correct for the picture but it doesn't show everything of the picture.
I need this preview to give the user the possibility to cancel the
printerjob before printing.

Has anyone an idea what is going wrong or a way to do it?
ThanX
cu Torsten


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




RE: Running Prefligh PDF tools on PDF files produced by FOP

2002-05-24 Thread Matt Johnston

Attached is the FO for a simple PDF.  All the pdf is contains is the text
hello world.  I am using FOP 0.20.3 to create my PDFs.  With Enfocus
Pitstop (Win), I get an error of Fatal PDF error on page 1 when I try to
process the file.  When I try to open the PDF in Illustrator 8  9 (Mac), I
get an error of Acrobat PDF File Format is having difficulties. Bad
Parameter.  However, I can open the file up fine in Photoshop 5.5  6 (Mac)
and Flightcheck 3.73 (Mac).


Matt Johnston
Manager of Internet Content
American Profile, http://www.americanprofile.com
341 Cool Springs Blvd., Ste. 400
Franklin, TN 37067
p: 615-468-6053
f: 615-468-6153


-Original Message-
From: J.U. Anderegg [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 4:46 AM
To: [EMAIL PROTECTED]
Subject: AW: Running Prefligh PDF tools on PDF files produced by FOP


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]




preflight_crash.fo
Description: Binary data

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


Embedding Example

2002-05-24 Thread David B. Bitton

Why if passing the ContentHandler from FOP into a Xalan transform is faster,
is it not done this way in the embedding example?

Can I write an example for doing it this way for inclusion in the distro?

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Code Made Fresh DailyT


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




RE: build changes

2002-05-24 Thread Arved Sandstrom

 -Original Message-
 From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
 Sent: May 24, 2002 6:29 AM
 To: FOP
 Subject: Re: build changes

 On Thu, 2002-05-23 at 12:51, Peter B. West wrote:
  The full range of what I want to do with versioning I am not sure of;
  the minimum I am sure of.  I canvassed this a short time ago.  That is,
  to eliminate the situation where the identification of a build depends
  on manual intervention in the build.xml file which may or may not match
  a tag in the CVS tree, which may or may not correspond to the full set
  of files in the release.  I am astonished that this situation is
  tolerated, although I should not be astonished to be told that
 it is the
  general condition of Ant-based builds.

 Considering that *every* project has a version you would think there is
 a standard and robust way of handling this.

Ant is a cross-platform (by virtue of Java and XML) makefile system,
basically, optimized for Java projects. Which is not new information.
Sometimes we all lose sight of the fact that that is all it is. I have yet
to do anything with Ant that I couldn't have done with a standard makefile;
it just happens that Ant is easier to use for complex Java projects.

Ant imposes no standards for versioning or configuration management. That
would be well outside the scope of the tool. What it does provide are useful
tasks for simplifying whatever versioning and CM a team decides to employ.
Apart from open-source use of Ant (mainly with FOP) I have used Ant in
real-life for over 2 years. At one company the versioning and CM was based
on IEEE, so we tailored our buildfiles to do that. There we used CVS. At my
current place of employ, Hummingbird, we use Ant with VSS and our own
versioning standards - our buildfiles are tailored to support _that_. And
Apache projects are different yet again.

I don't find it unusual or objectionable that the version information is not
automated. If we did regular builds that would be a candidate for
automation, certainly, but we don't (Gump does, admittedly, but _we_ don't).
Finally, I think it would be reasonable to automate labelling (tagging) in
conjunction with an actual release. But overall I don't think things are
that bad.

[ SNIP ]
 
  Let me say a few words about the CVS tree.  It's not a sacred site.  It
  has branches in order, among other things, to enable isolated
  development.  IMHO, all individual development should take place on
  personal branches, unless multiple developers are closely co-ordinating
  attacks on particular pieces of code.  Make changes, find out what
  others are up to, merge into your own branch from the trunk as
  necessary, and when you're ready, notify everyone that you want
 to merge
  back to the trunk.  Do that.  Find, and resolve with the other
  developers any merge conflicts.  Abandon the branch.  Throw another one
  and move on.  This tool allows such things to happen and protects
  everybody's investment, so let's take advantage of it.  If a branch is
  abandoned without ever being integrated into a release, so what?

 That is true.
 On the other hand this sort of approach does not enforce and promote
 community development. In practice branches are used for version and
 maintenance+bugfix or major changes and development occurs in the one
 place. For unproved concepts something like a scratchpad is used. Also
 this doesn't really scale with more developers.
 Part of the reason can be seen from the resources available to the trunk
 code. Gump provides a compile and project compatibility check. People
 can grab a nightly download to check and use the latest build
 (admittedly broken right now). Other developers can see the changes
 directly.
 I don't think protecting people from problems will lead to the solution
 of those problems.

I tend to agree with Keiron on this, Peter. You're right, the CVS tree is
not sacred, but the development model you advocate is not the usual one. For
the reasons that Keiron states.

Another good reason for branches is planned development that is out of sync
with other planned development. That is, one or two developers have a major
feature to work on, over a month or two, that is going to straddle a number
of releases, and they simply will not have working code available during
that time period, and what they are doing would actually affect
functionality if it were to be in the main branch. But with this major
exception I can't think of any other situations, apart from the release
maintenance scenario, where a branch is really called for.

Just my opinion.

Arved


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




Re: eps preview - question

2002-05-24 Thread Jeremias Maerki

Neither Acrobat Reader not the AWT renderer can display an EPS image.
EPS only works with the PDF renderer IF(!) the document is printed to a
PostScript printer, or with the PostScript renderer. No other renderer
in FOP can do aynthing with an EPS.

 I've a little(?) problem on previewing eps graphics in an awt-rendered
 window.
 
 I know that acrobat reader doesn't preview emebedded postscript. But have I
 misunderstood, I thought fop does the preview on screen!? I'm using
 'external-graphic' for that. My rendered page does preserve the space
 correct for the picture but it doesn't show everything of the picture.
 I need this preview to give the user the possibility to cancel the
 printerjob before printing.
 
 Has anyone an idea what is going wrong or a way to do it?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




Re: Embedding Example

2002-05-24 Thread David B. Bitton

Our application uses FOP on a seperate server and is access via an ASP page
by way of SOAP (MS Soap Toolkit 2.0).  So the actually serving of the
document is handled by a Response.BinaryWrite on the ASP page.  I guess
IIS/ASP must take care of the content-length header for me.

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Code Made Fresh DailyT
- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 24, 2002 9:49 AM
Subject: RE: Embedding Example


 The main reason is the line:  response.setContentLength(content.length);
 Failing to set the content length, which happens if you do it as you
 suggest, causes IE to get upset and fail to call Acrobat Reader to display
 the streamed PDF.  I know this for a fact because I had it working as you
 suggested and we had more then one client complain that they could not get
 Acrobat Reader to display our dynamically created PDFs.  I went into our
 code and changed it back to the way the embedding example showed and the
IE
 issues went away.


 Jim Urban - [EMAIL PROTECTED]
 Park City Solutions Inc.
 Clinical Connectivity Suite Product Manager
 Suite 295
 500 Park Blvd.
 Itasca, IL  60143
 Voice:  (630) 250-3045 x106
 Fax:  (630) 250-3046

 CONFIDENTIALITY NOTICE
 This message and any included attachments are from Park City Solutions
Inc.
 and are intended only for the entity to which it is addressed. The
contained
 information is confidential and privileged material. If you are not the
 intended recipient, you are hereby notified that any use, dissemination,
or
 copying of this communication is strictly prohibited and may be unlawful.
If
 you have received this communication in error please notify the sender of
 the delivery error by e-mail or call Park City Solutions Inc. corporate
 offices at (435) 654-0621

 -Original Message-
 From: David B. Bitton [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 24, 2002 8:25 AM
 To: fop-dev
 Subject: Embedding Example

 Why if passing the ContentHandler from FOP into a Xalan transform is
faster,
 is it not done this way in the embedding example?

 Can I write an example for doing it this way for inclusion in the distro?

 --

 David B. Bitton
 [EMAIL PROTECTED]
 www.codenoevil.com

 Code Made Fresh DailyT


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


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




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




RE: eps preview - question

2002-05-24 Thread Jim Urban

Have you tried GhostView (GhostScript)?  It can view EPS and PDF.


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 9:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: eps preview - question

Neither Acrobat Reader not the AWT renderer can display an EPS image.
EPS only works with the PDF renderer IF(!) the document is printed to a
PostScript printer, or with the PostScript renderer. No other renderer
in FOP can do aynthing with an EPS.

 I've a little(?) problem on previewing eps graphics in an awt-rendered
 window.

 I know that acrobat reader doesn't preview emebedded postscript. But have
I
 misunderstood, I thought fop does the preview on screen!? I'm using
 'external-graphic' for that. My rendered page does preserve the space
 correct for the picture but it doesn't show everything of the picture.
 I need this preview to give the user the possibility to cancel the
 printerjob before printing.

 Has anyone an idea what is going wrong or a way to do it?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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


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




RE: eps preview - question

2002-05-24 Thread Torsten Erler

Ok thanks! :(

cu Torsten

P.S. Is there another known way to make eps visible in java?

 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
 Sent: Freitag, 24. Mai 2002 16:14
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: eps preview - question
 
 
 Neither Acrobat Reader not the AWT renderer can display an EPS image.
 EPS only works with the PDF renderer IF(!) the document is 
 printed to a
 PostScript printer, or with the PostScript renderer. No other renderer
 in FOP can do aynthing with an EPS.
 
--X snip

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




Re: eps preview - question

2002-05-24 Thread Jeremias Maerki

Well, there's only one Level 1 PostScript viewer around, I think:
http://www.geocities.com/toastscript/

I doubt that you will get happy with it. I'd rather suggest to convert
your EPS images to SVG using Adobe Illustrator 9 or later.

 Ok thanks! :(
 
 cu Torsten
 
 P.S. Is there another known way to make eps visible in java?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




Keiron Liddle Elected To ASF

2002-05-24 Thread Arved Sandstrom

Hi, all

I am very pleased to announce that Keiron has been elected to membership in
the Apache Software Foundation, effective tomorrow (voting finished today).
I'd like to be the first to extend my hearty congratulations. :-)

Regards,
Arved
__
Arved Sandstrom
Sr Software Developer
Platform Products Group
Halifax RD Office
Hummingbird Ltd


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




Re: Keiron Liddle Elected To ASF

2002-05-24 Thread Peter B. West

Arved Sandstrom wrote:

Hi, all

I am very pleased to announce that Keiron has been elected to membership in
the Apache Software Foundation, effective tomorrow (voting finished today).
I'd like to be the first to extend my hearty congratulations. :-)
  

Keiron,

Let me be the third.  Hearty congratulations.  This is a considerable 
achievement.

Peter



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




Re: build changes

2002-05-24 Thread Peter B. West

Arved Sandstrom wrote:

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]



Ant is a cross-platform (by virtue of Java and XML) makefile system,
basically, optimized for Java projects. Which is not new information.
Sometimes we all lose sight of the fact that that is all it is. I have yet
to do anything with Ant that I couldn't have done with a standard makefile;
it just happens that Ant is easier to use for complex Java projects.

Ant imposes no standards for versioning or configuration management. That
would be well outside the scope of the tool. What it does provide are useful
tasks for simplifying whatever versioning and CM a team decides to employ.
Apart from open-source use of Ant (mainly with FOP) I have used Ant in
real-life for over 2 years. At one company the versioning and CM was based
on IEEE, so we tailored our buildfiles to do that. There we used CVS. At my
current place of employ, Hummingbird, we use Ant with VSS and our own
versioning standards - our buildfiles are tailored to support _that_. And
Apache projects are different yet again.

I don't find it unusual or objectionable that the version information is not
automated. If we did regular builds that would be a candidate for
automation, certainly, but we don't (Gump does, admittedly, but _we_ don't).
Finally, I think it would be reasonable to automate labelling (tagging) in
conjunction with an actual release. But overall I don't think things are
that bad.
  


The automation of release labelling is not the main issue, just the 
easiest to fix.  If release labelling were all there was to it, it would 
be neither here nor there.  The main game is binary accounting; the 
assurance that a release is what it says it is, down to the very last 
file.  That's a big ask, where you have image files, e.g.   It is not a 
big issue for text-based files though.

What approach is taken in the places you mention to the identification 
of binary components?

Peter


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




RE: build changes

2002-05-24 Thread Arved Sandstrom

 -Original Message-
 From: Peter B. West [mailto:[EMAIL PROTECTED]]
 Sent: May 24, 2002 9:23 PM
 To: [EMAIL PROTECTED]
 Subject: Re: build changes

 What approach is taken in the places you mention to the identification
 of binary components?

Version information is included in the Manifest.mf of all JARs. We use
Manifest attributes that are made available by Java for installed optional
packages, like Implementation-Version. This includes versioning, build
number, and product code. It is all automatically done, and if it's an
actual release then there is a label in VSS that maps to this.

JARs also include any shared libs/DLLs. These also get built at the same
time as everything else.

It's not perfect but if a customer reports problems with a JAR we have
enough info to track back to source.

Arved


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