[kepler-dev] Including PDF in Vergil

Christopher Brooks cxh at eecs.berkeley.edu
Mon Jul 13 13:14:44 PDT 2009


Hi David,
Kepler fails to build for me after I moved PDFRenderer.jar from ptII/lib to
ptII/ptolemy/vergil/pdfrenderer.  To reproduce this:

cd build-area
ant update
ant update-ptolemy -Drev=head
ant run

The error message is:

compile:
   [compile] Compiling ptolemy...
   [compile] Compiling 3277 source files to /Users/cxh/src/kepler/ptolemy/target/classes
   [compile] /Users/cxh/src/kepler/ptolemy/ptolemy/vergil/pdfrenderer/PDFAttribute.java:46: package com.sun.pdfview does not exist
   [compile] import com.sun.pdfview.PDFFile;
   [compile]                        ^

I updated (but did not check in) build-area/settings/ptolemy-includes
to include:
ptolemy/vergil/pdfrenderer/PDFRenderer.jar

But running "ant run" has no effect.

The jar file is present:

bash-3.2$ ls -l ../ptolemy/ptolemy/vergil/pdfrenderer/PDFRenderer.jar
-rw-r--r--  1 cxh  staff  2087109 Jul 13 11:31 ../ptolemy/ptolemy/vergil/pdfrenderer/PDFRenderer.jar


https://kepler-project.org/developers/teams/build/documentation/build-system-instructions#modifying-ptolemy-includes-and
just says to edit ptolemy-includes, it does not say what, if any, other commands should be run.

What else needs to be done when ptolemy-includes is updated?
Is there anyway that this file can have comments in it that indicate what commands need to be run
and also a link to the docs?


Also, at this point the PDFAttribute does not appear in Kepler.  I'm not sure how to add it, though
I have not looked hard at the docs yet.

_Christopher


Edward A. Lee wrote:
> 
> I've added a PDFAttribute to the Utilities->Decorative library in Vergil
> that allows you to include PDF in a Vergil diagram.
> 
> The reason I wanted this was mainly so I could include Latex-formatted
> equations in Vergil diagrams, and get full print resolution when
> printing to PDF for use in papers, books, etc.  For example, see
> attached.
> 
> Using requires a new external library, PDFRenderer.jar, which I've
> put in $PTII/lib.  This is a LGPL'd open source product from Sun.
> 
> To use it, I use LatexIt (see
> http://www.apple.com/downloads/macosx/math_science/latexit.html
> for the Mac version... I think there are Windows and Linux versions).
>  From LatexIt, I can create a PDF file with an equation.
> 
> Then I drag into my Vergil diagram a PDFAttribute, or select
> Edit Custom Icon and drag in a PDFIcon. Double click on that to
> select the PDF file.
> 
> To use this, you need to do a CVS update and
> either re-run configure or do
> 
>   cd $PTII/bin
>   make
> 
> 
> This will put the jar file in the path for vergil.
> 
> Edward
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

-- 
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480


More information about the Kepler-dev mailing list