You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "J.U. Anderegg" <ha...@bluewin.ch> on 2002/04/12 22:24:06 UTC

PDF JavaScript and Form Fields: FOP prototype version is available

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
applications from simple user navigation/form-fillin to complex
database/transaction systems. Note that many functions need more Adobe
software than just Acrobat Reader.

Hansuli Anderegg, Zurich

Re: java/util/HashMap error

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mathy V Arumugam wrote:
> I have posted this que. to the fop-user list and no resp.

This has been roughly *one hour* before you posted
this message. Do you expect a list operated by volunteers
to have a better response time than a paid service?
Many people check only once or twice a day for new mail,
quite a few even less often. The expert who can answer
your question could be out for lunch or just busy.

If you don't get an answer after a few days, that would
mean something.

(more flames deleted, grudgingly)

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Drawing a line between two region-body columns

Posted by Patrick Andries <pa...@videotron.ca>.

J.Pietschmann wrote:

> Patrick Andries wrote:
>
>>
>> I have divided the region-body in two. I would now like to draw a 
>> single line separating the two columns, can this be done ?
>>
>> Is there any way to write something in the column-gap ? 
>> Alternatively, since I am having a block flowing from one column to 
>> another could I have the right column block's left border to appear 
>> but not the left column  block's left border to appear. 
>
>
> You can use static content in a region overlapping
> the region-body with the text flow. Use an empty block
> or table with absolute positioning and height settings. 

Yes, as often the solutions proposed assume absolute positions, I would 
much prefer to be able to do this sort of thing starting after a number 
of arbitrary blocks (spanned here). I think that the region-body should 
not indicate the number of columns, but one or several flow-body (let's 
say) which could have varying number of columns (1,2,3...). A model 
superior to what is available today (one can only indicate a fixed 
number of columns or span them). Would also be nice if this flow-body 
could then have decoration attributes for the column gap or for the 
different borders of the columns defined. Just an idea.

> BTW please post this kind of questions only to fop-user. 

> In general, avoid cross posting to both lists. 

Ok.

P. Andries


Re: Drawing a line between two region-body columns

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Patrick Andries wrote:
> 
> I have divided the region-body in two. I would now like to draw a single 
> line separating the two columns, can this be done ?
> 
> Is there any way to write something in the column-gap ? Alternatively, 
> since I am having a block flowing from one column to another could I 
> have the right column block's left border to appear but not the left 
> column  block's left border to appear. 

You can use static content in a region overlapping
the region-body with the text flow. Use an empty block
or table with absolute positioning and height settings.

I don't think you can do it by inserting stuff into
the normal text flow.

BTW please post this kind of questions only to fop-user.
In general, avoid cross posting to both lists.

J.Pietschmann


Drawing a line between two region-body columns

Posted by Patrick Andries <pa...@videotron.ca>.
I have divided the region-body in two. I would now like to draw a single 
line separating the two columns, can this be done ?

Is there any way to write something in the column-gap ? Alternatively, 
since I am having a block flowing from one column to another could I 
have the right column block's left border to appear but not the left 
column  block's left border to appear.  

I.e.

<right column of block ...>   |  <... left column of block> and not the 
usual
 | <right column of block ...>   |  <... left column of block> which is 
easy to get with <block border-left="1pt ">

I see no way for this to work, but I would really like it to.

Patrick Andries










Drawing a line between two region-body columns

Posted by Patrick Andries <pa...@videotron.ca>.
I have divided the region-body in two. I would now like to draw a single 
line separating the two columns, can this be done ?

Is there any way to write something in the column-gap ? Alternatively, 
since I am having a block flowing from one column to another could I 
have the right column block's left border to appear but not the left 
column  block's left border to appear.  

I.e.

<right column of block ...>   |  <... left column of block> and not the 
usual
 | <right column of block ...>   |  <... left column of block> which is 
easy to get with <block border-left="1pt ">

I see no way for this to work, but I would really like it to.

Patrick Andries










---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: FOPException error

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mathy V Arumugam wrote:
>  Has anyone experience a problem like below?  I can't figure out why there is
> a difference when running this code in a Java application vs. a Servlet.
> 
> In Java application, code runs great, but when it runs in a servlet I have
> the following error:
> 
> org.apache.fop.apps.FOPException
> at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)

This is becoming a VFAQ.

Most probably, your servlet does not have a XML parser
in the classpath. Check your application server documentation
how to get the Xalan.jar and Xerces.jar delivered with
FOP into the classpath in effect for your servlet.

There may be a number of other reasons, like misconfigurations
and conflicts with other parsers, the exception message should
have some characteristical details in this case (don't snip
a "root cause" or "original exception", if it is available
in the backtrace).

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


FOPException error

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Hello all,

 Has anyone experience a problem like below?  I can't figure out why there is
a difference when running this code in a Java application vs. a Servlet.

In Java application, code runs great, but when it runs in a servlet I have
the following error:

org.apache.fop.apps.FOPException
at org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)

Thanks
Mathy


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: java/util/HashMap error

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Thanks J.

I found a way to run the javawebserver using the jre lib.

Mathy

"J.Pietschmann" wrote:

> Mathy V Arumugam wrote:
> > I have posted this que. to the fop-user list and no resp.  Hope someone
> > could help me...
> >
> > I am using JDK 1.3.0_02 along with javawebserver2.0.
> >
> > My servlet is failing at
> >      Driver dr=new Driver();
> >
> > Error:
> >  java.lang.NoClassDefFoundError: java/util/HashMap
> >  at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:85)
>
> You don't have access to the Java run time library.
> This is not a FOP problem. Ask the javawebserver guys
> what magic you have to apply.
> Chances are that you either have to deploy the FOP
> jars and/or your class files somewhere else, or you hit
> a bug in the webserver.
>
> Unless someone else on this list uses javawebserver,
> you wont get further help on this list for this
> problem.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: java/util/HashMap error

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mathy V Arumugam wrote:
> I have posted this que. to the fop-user list and no resp.  Hope someone 
> could help me...
> 
> I am using JDK 1.3.0_02 along with javawebserver2.0.
> 
> My servlet is failing at
>      Driver dr=new Driver();
> 
> Error:
>  java.lang.NoClassDefFoundError: java/util/HashMap
>  at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:85)

You don't have access to the Java run time library.
This is not a FOP problem. Ask the javawebserver guys
what magic you have to apply.
Chances are that you either have to deploy the FOP
jars and/or your class files somewhere else, or you hit
a bug in the webserver.

Unless someone else on this list uses javawebserver,
you wont get further help on this list for this
problem.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: java/util/HashMap error

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Setting up the current path did NOT do any good

Mathy V Arumugam wrote:

> Thanks James,
> But that did do any good.
>
> Mathy
>
> James Hunt wrote:
>
> > I've received this error when I didn't have my
> > CLASSPATH system variable set correctly. Set CLASSPATH
> > to .; <what ever paths you had previously>/
> >
> > Good Luck,
> > James
> >
> > --- Mathy V Arumugam <ma...@jpl.nasa.gov>
> > wrote:
> > > I have posted this que. to the fop-user list and no
> > > resp.  Hope someone could
> > > help me...
> > >
> > > I am using JDK 1.3.0_02 along with javawebserver2.0.
> > >
> > > My servlet is failing at
> > >      Driver dr=new Driver();
> > >
> > > Error:
> > >  java.lang.NoClassDefFoundError: java/util/HashMap
> > >  at
> > >
> > org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:85)
> > >
> > > Thanks
> > > Mathy
> > >
> > > This is what I have in my java file to generate a
> > > PDF file:
> > >     Logger log;
> > >     Hierarchy hierarchy =
> > > Hierarchy.getDefaultHierarchy();
> > >     log = hierarchy.getLoggerFor("fop");
> > >     log.setPriority(Priority.WARN);
> > >     Driver dr=new Driver();    // *****  this is
> > > where it is failing******
> > >     dr.setLogger(log);
> > >     dr.setRenderer(Driver.RENDER_PDF);
> > >     InputHandler ih=new
> > > XSLTInputHandler(xmlFile,xslFile);
> > >     XMLReader p=ih.getParser();
> > >     dr.setOutputStream(new
> > > FileOutputStream(pdfFile));
> > >     dr.render(p,ih.getInputSource());
> > >
> > >
> > >
> > >
> >
> > =====
> > Voice: (513) 661 - 8007
> > Email: jamesanthonyhunt@yahoo.com
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: java/util/HashMap error

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Thanks James,
But that did do any good.

Mathy

James Hunt wrote:

> I've received this error when I didn't have my
> CLASSPATH system variable set correctly. Set CLASSPATH
> to .; <what ever paths you had previously>/
>
> Good Luck,
> James
>
> --- Mathy V Arumugam <ma...@jpl.nasa.gov>
> wrote:
> > I have posted this que. to the fop-user list and no
> > resp.  Hope someone could
> > help me...
> >
> > I am using JDK 1.3.0_02 along with javawebserver2.0.
> >
> > My servlet is failing at
> >      Driver dr=new Driver();
> >
> > Error:
> >  java.lang.NoClassDefFoundError: java/util/HashMap
> >  at
> >
> org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:85)
> >
> > Thanks
> > Mathy
> >
> > This is what I have in my java file to generate a
> > PDF file:
> >     Logger log;
> >     Hierarchy hierarchy =
> > Hierarchy.getDefaultHierarchy();
> >     log = hierarchy.getLoggerFor("fop");
> >     log.setPriority(Priority.WARN);
> >     Driver dr=new Driver();    // *****  this is
> > where it is failing******
> >     dr.setLogger(log);
> >     dr.setRenderer(Driver.RENDER_PDF);
> >     InputHandler ih=new
> > XSLTInputHandler(xmlFile,xslFile);
> >     XMLReader p=ih.getParser();
> >     dr.setOutputStream(new
> > FileOutputStream(pdfFile));
> >     dr.render(p,ih.getInputSource());
> >
> >
> >
> >
>
> =====
> Voice: (513) 661 - 8007
> Email: jamesanthonyhunt@yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: java/util/HashMap error

Posted by James Hunt <ja...@yahoo.com>.
I've received this error when I didn't have my
CLASSPATH system variable set correctly. Set CLASSPATH
to .; <what ever paths you had previously>/

Good Luck, 
James

--- Mathy V Arumugam <ma...@jpl.nasa.gov>
wrote:
> I have posted this que. to the fop-user list and no
> resp.  Hope someone could
> help me...
> 
> I am using JDK 1.3.0_02 along with javawebserver2.0.
> 
> My servlet is failing at
>      Driver dr=new Driver();
> 
> Error:
>  java.lang.NoClassDefFoundError: java/util/HashMap
>  at
>
org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:85)
> 
> Thanks
> Mathy
> 
> This is what I have in my java file to generate a
> PDF file:
>     Logger log;
>     Hierarchy hierarchy =
> Hierarchy.getDefaultHierarchy();
>     log = hierarchy.getLoggerFor("fop");
>     log.setPriority(Priority.WARN);
>     Driver dr=new Driver();    // *****  this is
> where it is failing******
>     dr.setLogger(log);
>     dr.setRenderer(Driver.RENDER_PDF);
>     InputHandler ih=new
> XSLTInputHandler(xmlFile,xslFile);
>     XMLReader p=ih.getParser();
>     dr.setOutputStream(new
> FileOutputStream(pdfFile));
>     dr.render(p,ih.getInputSource());
> 
> 
> 
> 


=====
Voice: (513) 661 - 8007
Email: jamesanthonyhunt@yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


java/util/HashMap error

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
I have posted this que. to the fop-user list and no resp.  Hope someone could
help me...

I am using JDK 1.3.0_02 along with javawebserver2.0.

My servlet is failing at
     Driver dr=new Driver();

Error:
 java.lang.NoClassDefFoundError: java/util/HashMap
 at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:85)

Thanks
Mathy

This is what I have in my java file to generate a PDF file:
    Logger log;
    Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
    log = hierarchy.getLoggerFor("fop");
    log.setPriority(Priority.WARN);
    Driver dr=new Driver();    // *****  this is where it is failing******
    dr.setLogger(log);
    dr.setRenderer(Driver.RENDER_PDF);
    InputHandler ih=new XSLTInputHandler(xmlFile,xslFile);
    XMLReader p=ih.getParser();
    dr.setOutputStream(new FileOutputStream(pdfFile));
    dr.render(p,ih.getInputSource());




AW: PDF JavaScript and Form Fields: FOP prototype version is available

Posted by "J.U. Anderegg" <ha...@bluewin.ch>.
PDF JavaScript has two methods for the App object: hideMenuItem and
hideToolbarButton.

So "Print" and the "Save As" can be controlled.

Hansuli Anderegg




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: PDF JavaScript and Form Fields: FOP prototype version is available

Posted by Marco Fabbri <mf...@libero.it>.
Very interesting for me: I need to disable the "Print" and the "Save As"
function of the Acrobat Toolbar in IE.

Do you think it's possible?

Thanks a lot for your work.

Marco Fabbri

----- Original Message -----
From: "J.U. Anderegg" <ha...@bluewin.ch>
To: <fo...@xml.apache.org>
Sent: Friday, April 12, 2002 10:24 PM
Subject: PDF JavaScript and Form Fields: FOP prototype version is available


> 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
> applications from simple user navigation/form-fillin to complex
> database/transaction systems. Note that many functions need more Adobe
> software than just Acrobat Reader.
>
> Hansuli Anderegg, Zurich
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org