Ok, Thanks,
The Next thing i tried for opacity is, covert the string to a image with a
transparent background, But When i try putting it on the PDFX32002. It
gives me an error
"The /SMask key is not allowed in images". Is there any way i can put a
image with transparent background in a PDFX32002
-Mandeep.
On Sat, Apr 27, 2013 at 7:49 PM, Leonard Rosenthol <lrose...@adobe.com>wrote:
> PDF/X-3 2002 does not support opacity/transparency. You can't use it.
>
> If you need transparency in PDF/X, you need PDF/X-4.
>
> Leonard
>
> From: Mandeep singh mashiana <mandeep8...@gmail.com>
> Reply-To: Post here <itext-questions@lists.sourceforge.net>
> Date: Saturday, April 27, 2013 12:45 PM
> To: Post here <itext-questions@lists.sourceforge.net>
> Subject: [iText-questions] Applying Opacity for PDFX32002
>
> Hi,
> I am working on a project which generates PDFX32002 pdf and I want to set
> the opacity of a text to 0.5, But no text is being displayed on the pdf.
> The Code works fine for a normal PDF and When I set coveWriter to PDFX32002
> "coverWriter.setPDFXConformance(PdfWriter.PDFX32002);" nothing happens.
>
> This is a snippet for the code
>
> PdfContentByte cb1 = coverWriter.getDirectContent();
> PdfGState gstate = new PdfGState();
> gstate.setFillOpacity(0.3f);
> gstate.setStrokeOpacity(0.3f);
> cb1.setGState(gstate);
> ColumnText ct = new ColumnText(cb1);
> ct.setSimpleColumn(phrase,x,y,Ux,Uy);
> ct.go();
>
> -Mandeep
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
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