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 Lorenzo Patocchi <lo...@tinet.com> on 2000/04/29 11:55:27 UTC

Re: can't print -> inconsistent sources

I downloaded lastest version of packed sources from

> You can get a Gzipped, tarred, snapshot of the CVS here:
> http://xml.apache.org/from-cvs/
> (we should add a link somewhere on the web)

(xml-fop_20000429041422.tar.gz ) and I noticed that sources are a bit
inconsistent,

are missing :
    - class Position  (from ?? package) used in lot of other classes
    - class InitialPageNumber (from ?? package) used in
org.apache.fop.fo.pagination.PageSequesnce.PageSequenbce()
    - package org.apache.fop.fo.properties
    - package org.apache.fop.renderer.pdf.fonts

org.apache.fop.pdf.PDFDocument
- all makeShading() methods call constructor of PDFShading class with
a StringBuffer insthead of a ColorSpace type variable (theColorSpace)
-> probably this class is an older version ?


--
Ing. Lorenzo Patocchi, Software Engineer
TINET SA, Via Violino 1, CH-6928 Manno-Lugano
tel. +41 91 612 22 22, fax. +41 91 612 22 23
email lorenzo.patocchi@tinet.com
http://www.tinet.com


pdf ok, but acrobat plugin won't display it

Posted by Jason Harrop <jh...@bigpond.net.au>.
hi.

i have a servlet which generates pdf and tries to send it to the browser
without writing a file on the server first.

on my linux box where i don't have acrobat installed, when i invoke the
servlet via get [servletname] through clicking on the link in netscape,
it displays a file dialog box, and i save the pdf.  i can open it in
acrobat on another machine and the pdf looks fine.

when i invoke the servlet from netscape when i have adobe installed,
netscape starts the adobe plugin, but then just displays a blank screen. 

i was hoping someone might be able to point out the error of my ways!

            res.setHeader("Pragma", "no-cache");
            res.setHeader("Cache-Control", "no-cache");  // HTTP/1.1
version of above

            PrintWriter pw = new PrintWriter(res.getOutputStream());
 
            res.setContentType("application/pdf");

	    String version = org.apache.fop.apps.Version.getVersion();
                        
            org.apache.fop.apps.Driver driver = new
org.apache.fop.apps.Driver();
            driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",
version);
           
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
           
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
            driver.setWriter(pw);
            driver.buildFOTree( XSLTout);
            driver.format();
            driver.render();

            pw.flush();
            pw.close();
  
thanks,

jason

Re: can't print -> inconsistent sources

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
I'd recommend using CVS directly. I haven't had any hand whatsoever in 
producing snapshot tarballs, and am not likely to produce any soon.

Use WinCVS, MacCVS, or cvs, depending on your platform. The details are 
available on the xml.apache.org website, under Repositories, but the gist is 
that you log in anonymously.

Don't forget to run Xalan or XT on the codegen files if you choose not to 
use Ant. InitialPageNumber, for example, is a "virtual" source file.

Hope this helps,

Arved Sandstrom

At 11:55 AM 4/29/00 +0200, Lorenzo Patocchi wrote:
>I downloaded lastest version of packed sources from
>
>> You can get a Gzipped, tarred, snapshot of the CVS here:
>> http://xml.apache.org/from-cvs/
>> (we should add a link somewhere on the web)
>
>(xml-fop_20000429041422.tar.gz ) and I noticed that sources are a bit
>inconsistent,
>
>are missing :
>    - class Position  (from ?? package) used in lot of other classes
>    - class InitialPageNumber (from ?? package) used in
>org.apache.fop.fo.pagination.PageSequesnce.PageSequenbce()
>    - package org.apache.fop.fo.properties
>    - package org.apache.fop.renderer.pdf.fonts
>
>org.apache.fop.pdf.PDFDocument
>- all makeShading() methods call constructor of PDFShading class with
>a StringBuffer insthead of a ColorSpace type variable (theColorSpace)
>-> probably this class is an older version ?
>
>
>--
>Ing. Lorenzo Patocchi, Software Engineer
>TINET SA, Via Violino 1, CH-6928 Manno-Lugano
>tel. +41 91 612 22 22, fax. +41 91 612 22 23
>email lorenzo.patocchi@tinet.com
>http://www.tinet.com
>
>
>Attachment Converted: "c:\eudora\attach\smime2.p7s"
>