Hi,

thanks for your fast response.

I am creating PDF forms and one cell displays an image; the getInstance crashes 
for EMF files.

        try {
              Image img = Image.getInstance(imagePathName);
              img.scalePercent(25.f);
              PdfPCell cellI = new PdfPCell(img, true);
              img.setAlignment(Image.MIDDLE);
              cellI.setRowspan(17);
              cellI.setBorder(iBorder);
              cellI.setBorderWidth(1.f);
              cellI.setPadding(2f);
              cellI.setHorizontalAlignment(Element.ALIGN_CENTER);
              cellI.setVerticalAlignment(Element.ALIGN_MIDDLE);

              tableS.addCell(cellI);
        }
        catch (Exception e) {
            ...  }

I got the impression from the discussion that David Thielen intended to 
implement EMF to iText.
Did that or will that happen?



Regards
Thomas Hippchen


From: TvT [mailto:tvtre...@nepatec.de]
Sent: Freitag, 3. Mai 2013 10:47
To: Post all your questions about iText here
Subject: Re: [iText-questions] iText - EMF

Handle how? What are you planning to do with them?

There has been a discussion about this:
http://itext-general.2136553.n4.nabble.com/WMF-EMF-support-td2163540.html
Depending on what you want to do, you may try to convert the emf file in a 
different (more common) format with 
http://xmlgraphics.apache.org/commons/image-loader.html
and then use iText to insert it into the pdf...

ToM


2013/5/3 Hippchen, Thomas (T.) <thipp...@ford.com<mailto:thipp...@ford.com>>
Is the iText Java library able to handle EMF image files?

Regards
Thomas Hippchen



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net<mailto:iText-questions@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to