/** * Adds a named outline to the document. * * @param outline the outline * @param name the name for the local destination */ public void addOutline(final PdfOutline outline, final String name) { checkWriter(); pdf.addOutline(outline, name); } /**
/** * Gets the root outline. * * @return the root outline */ public PdfOutline getRootOutline() { checkWriter(); return pdf.getRootOutline(); }
/** * Adds a named outline to the document. * * @param outline the outline * @param name the name for the local destination */ public void addOutline(final PdfOutline outline, final String name) { checkWriter(); pdf.addOutline(outline, name); } /**
/** * Gets the root outline. * * @return the root outline */ public PdfOutline getRootOutline() { checkWriter(); return pdf.getRootOutline(); }
PdfTemplate createTemplate(final float width, final float height, final PdfName forcedName) { checkWriter(); PdfTemplate template = new PdfTemplate(writer); template.setWidth(width); template.setHeight(height); writer.addDirectTemplateSimple(template, forcedName); return template; }
PdfAppearance createAppearance(final float width, final float height, final PdfName forcedName) { checkWriter(); PdfAppearance template = new PdfAppearance(writer); template.setWidth(width); template.setHeight(height); writer.addDirectTemplateSimple(template, forcedName); return template; }
PdfTemplate createTemplate(final float width, final float height, final PdfName forcedName) { checkWriter(); PdfTemplate template = new PdfTemplate(writer); template.setWidth(width); template.setHeight(height); writer.addDirectTemplateSimple(template, forcedName); return template; }
PdfAppearance createAppearance(final float width, final float height, final PdfName forcedName) { checkWriter(); PdfAppearance template = new PdfAppearance(writer); template.setWidth(width); template.setHeight(height); writer.addDirectTemplateSimple(template, forcedName); return template; }
public void setColorStroke(final PdfLabColor lab, float l, float a, float b) { checkWriter(); state.colorDetails = writer.addSimple(lab); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new LabColor(lab, l, a, b), true); content.append(name.getBytes()).append(" CS "); content.append(l + " " + a + " " + b + " "); content.append("SCN").append_i(separator); }
public void setColorFill(final PdfLabColor lab, float l, float a, float b) { checkWriter(); state.colorDetails = writer.addSimple(lab); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new LabColor(lab, l, a, b), true); content.append(name.getBytes()).append(" cs "); content.append(l + " " + a + " " + b + " "); content.append("scn").append_i(separator); }
public void setColorStroke(final PdfLabColor lab, float l, float a, float b) { checkWriter(); state.colorDetails = writer.addSimple(lab); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new LabColor(lab, l, a, b), true); content.append(name.getBytes()).append(" CS "); content.append(l + " " + a + " " + b + " "); content.append("SCN").append_i(separator); }
public void setColorFill(final PdfLabColor lab, float l, float a, float b) { checkWriter(); state.colorDetails = writer.addSimple(lab); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new LabColor(lab, l, a, b), true); content.append(name.getBytes()).append(" cs "); content.append(l + " " + a + " " + b + " "); content.append("scn").append_i(separator); }
public void setColorStroke(final PdfDeviceNColor sp, final float[] tints) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new DeviceNColor(sp, tints), true); content.append(name.getBytes()).append(" CS "); for (float tint : tints) content.append(tint + " "); content.append("SCN").append_i(separator); }
public void setColorFill(final PdfDeviceNColor dn, final float[] tints) { checkWriter(); state.colorDetails = writer.addSimple(dn); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new DeviceNColor(dn, tints), true); content.append(name.getBytes()).append(" cs "); for (float tint : tints) content.append(tint + " "); content.append("scn").append_i(separator); }
public void setColorStroke(final PdfDeviceNColor sp, final float[] tints) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new DeviceNColor(sp, tints), true); content.append(name.getBytes()).append(" CS "); for (float tint : tints) content.append(tint + " "); content.append("SCN").append_i(separator); }
public void setColorFill(final PdfDeviceNColor dn, final float[] tints) { checkWriter(); state.colorDetails = writer.addSimple(dn); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new DeviceNColor(dn, tints), true); content.append(name.getBytes()).append(" cs "); for (float tint : tints) content.append(tint + " "); content.append("scn").append_i(separator); }
/** Sets the stroke color to a spot color. * @param sp the spot color * @param tint the tint for the spot color. 0 is no color and 1 * is 100% color */ public void setColorStroke(final PdfSpotColor sp, final float tint) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new SpotColor(sp, tint), false); content.append(name.getBytes()).append(" CS ").append(tint).append(" SCN").append_i(separator); }
/** Sets the fill color to a spot color. * @param sp the spot color * @param tint the tint for the spot color. 0 is no color and 1 * is 100% color */ public void setColorFill(final PdfSpotColor sp, final float tint) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new SpotColor(sp, tint), true); content.append(name.getBytes()).append(" cs ").append(tint).append(" scn").append_i(separator); }
/** Sets the fill color to a spot color. * @param sp the spot color * @param tint the tint for the spot color. 0 is no color and 1 * is 100% color */ public void setColorFill(final PdfSpotColor sp, final float tint) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new SpotColor(sp, tint), true); content.append(name.getBytes()).append(" cs ").append(tint).append(" scn").append_i(separator); }
/** Sets the stroke color to a spot color. * @param sp the spot color * @param tint the tint for the spot color. 0 is no color and 1 * is 100% color */ public void setColorStroke(final PdfSpotColor sp, final float tint) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorSpaceName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); saveColor(new SpotColor(sp, tint), false); content.append(name.getBytes()).append(" CS ").append(tint).append(" SCN").append_i(separator); }