Apparently you want another writer such as HtmlWriter but for WMF or
Graphics2D. If you want to write one I'll include it in the distribution
:-).
Best Regards,
Paulo Soares
----- Original Message -----
From: "Joao Mello" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 16:29
Subject: [iText-questions] Draw routine for pdftable
Hi Paulo,
Sorry if you did not understand me. Let me try one
more time
This is the function that I have that draws the graph
into wmf
public void saveToWMF(String fileName,int width,int
height) {
try {
WMF wmf = new WMF();
WMFGraphics2D g2d = new WMFGraphics2D(wmf,
width, height);
// This is the function from JFreeCharts draws
the whole graph
chart.draw(g2d, new java.awt.Rectangle(width,
height));
// I would like to replace the previous line
with a function
// that draws the whole page or event only the
graph
// if the user wants
//save the WMF to an OutputStream with a
placeable WMF header
java.io.FileOutputStream out = new
java.io.FileOutputStream(fileName);
wmf.writePlaceableWMF(out,0,0,width,
height,Toolkit.getDefaultToolkit().getScreenResolution());
out.close();
} catch(Exception ex) {
ex.printStackTrace();
}
}
Thank you
Jo�o Mello
--- Paulo Soares <[EMAIL PROTECTED]> wrote:
>
> ----- Original Message -----
> From: "Joao Mello" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 23, 2002 17:00
> Subject: [iText-questions] Draw routine for pdftable
>
>
> Hi Paulo,
> Is there a way that you can comeup with a
> function
> that will draw the whole table. I am asking this
>
> Draw to where?
>
>
> because I have a function that converts you itext
> into
> .wmf file. With the JFreeChart is easy for me to
>
> You'll to explain that better. What's your input and
> output?
>
> include since after a produce you page into pdf, I
> call the routine chart.draw(...). If I had the same
> to
> PdfTables, even better for the whole document, this
> would be the best.
>
> I didn't understand anything about what you have or
> want to do.
>
> Best Regards,
> Paulo Soares
>
> Thank you,
> Jo�o Mello
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
>
>
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions