Subversion Repositories SmartDukaan

Rev

Rev 24515 | Rev 24845 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24515 Rev 24516
Line 360... Line 360...
360
	    // text watermark
360
	    // text watermark
361
        Font f = new Font(FontFamily.HELVETICA, 30);
361
        Font f = new Font(FontFamily.HELVETICA, 30);
362
        Phrase p = new Phrase("My watermark (text)", f);
362
        Phrase p = new Phrase("My watermark (text)", f);
363
        URL cancelledImgUrl = PdfUtils.class.getClassLoader().getResource("cancelled.png");
363
        URL cancelledImgUrl = PdfUtils.class.getClassLoader().getResource("cancelled.png");
364
	    Image img = Image.getInstance(cancelledImgUrl);
364
	    Image img = Image.getInstance(cancelledImgUrl);
365
        float w = img.getScaledWidth();
365
        float w = img.getScaledWidth()/2;
366
        float h = img.getScaledHeight();
366
        float h = img.getScaledHeight()/2;
367
        // transparency
367
        // transparency
368
        PdfGState gs1 = new PdfGState();
368
        PdfGState gs1 = new PdfGState();
369
        gs1.setFillOpacity(0.5f);
369
        gs1.setFillOpacity(0.5f);
370
        //properties
370
        //properties
371
        PdfContentByte over;
371
        PdfContentByte over;