else if (rotation == 270) frm.concatCTM(0, -1, 1, 0, 0, rect.getWidth()); frm.addTemplate(app[0], 0, 0); if (!acro6Layers) frm.addTemplate(app[1], scale, 0, 0, scale, x, y); frm.addTemplate(app[2], 0, 0); if (!acro6Layers) { frm.addTemplate(app[3], scale, 0, 0, scale, x, y); frm.addTemplate(app[4], 0, 0); napp.setBoundingBox(rotated); writer.addDirectTemplateSimple(napp, null); napp.addTemplate(frm, 0, 0); return napp;
this.frm.concatCTM(0, -1, 1, 0, 0, this.rect.getWidth()); this.frm.addTemplate(this.app[0], 0, 0); if (!this.acro6Layers) { this.frm.addTemplate(this.app[1], scale, 0, 0, scale, x, y); this.frm.addTemplate(this.app[2], 0, 0); if (!this.acro6Layers) { this.frm.addTemplate(this.app[3], scale, 0, 0, scale, x, y); this.frm.addTemplate(this.app[4], 0, 0); napp.setBoundingBox(rotated); this.writer.addDirectTemplateSimple(napp, null); napp.addTemplate(this.frm, 0, 0); return napp;
else if (rotation == 270) frm.concatCTM(0, -1, 1, 0, 0, rect.getWidth()); frm.addTemplate(app[0], 0, 0); if (!acro6Layers) frm.addTemplate(app[1], scale, 0, 0, scale, x, y); frm.addTemplate(app[2], 0, 0); if (!acro6Layers) { frm.addTemplate(app[3], scale, 0, 0, scale, x, y); frm.addTemplate(app[4], 0, 0); napp.setBoundingBox(rotated); writer.addDirectTemplateSimple(napp, null); napp.addTemplate(frm, 0, 0); return napp;
tp.setBoundingBox(new Rectangle(template.getWidth(), template.getHeight())); writer.addDirectTemplateSimple(tp, PdfName.FRM); tp.addTemplate(template, template.getBoundingBox().getLeft(), template.getBoundingBox().getBottom()); haveIcon = true; boundingBoxWidth = tp.getBoundingBox().getWidth();
tp.setBoundingBox(new Rectangle(template.getWidth(), template.getHeight())); writer.addDirectTemplateSimple(tp, PdfName.FRM); tp.addTemplate(template, template.getBoundingBox().getLeft(), template.getBoundingBox().getBottom()); haveIcon = true; boundingBoxWidth = tp.getBoundingBox().getWidth();
tp.setBoundingBox(new Rectangle(template.getWidth(), template.getHeight())); writer.addDirectTemplateSimple(tp, PdfName.FRM); tp.addTemplate(template, template.getBoundingBox().getLeft(), template.getBoundingBox().getBottom()); haveIcon = true; boundingBoxWidth = tp.getBoundingBox().getWidth();