/** * @return a string whose characters represent code points in a possibly two-byte font */ public String getFontCodes() { if (pdfText != null) { return pdfText.toString(); } return null; }
/** * Constructs a <CODE>PdfOutline</CODE>. * <P> * This is the constructor for an <CODE>outline entry</CODE>. * * @param parent the parent of this outline item * @param destination the destination for this outline item * @param title the title of this outline item * @param open <CODE>true</CODE> if the children are visible */ public PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title, boolean open) { this(parent, destination, title.toString(), true); }
/** * Constructs a <CODE>PdfOutline</CODE>. * <P> * This is the constructor for an <CODE>outline entry</CODE>. * * @param parent the parent of this outline item * @param destination the destination for this outline item * @param title the title of this outline item * @param open <CODE>true</CODE> if the children are visible */ public PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title, boolean open) { this(parent, destination, title.toString(), true); }
/** * Constructs a <CODE>PdfOutline</CODE>. * <P> * This is the constructor for an <CODE>outline entry</CODE>. * * @param parent the parent of this outline item * @param action the <CODE>PdfAction</CODE> for this outline item * @param title the title of this outline item * @param open <CODE>true</CODE> if the children are visible */ public PdfOutline(PdfOutline parent, PdfAction action, PdfString title, boolean open) { this(parent, action, title.toString(), open); }
/** * Constructs a <CODE>PdfOutline</CODE>. * <P> * This is the constructor for an <CODE>outline entry</CODE>. * * @param parent the parent of this outline item * @param destination the destination for this outline item * @param title the title of this outline item * @param open <CODE>true</CODE> if the children are visible */ public PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title, boolean open) { this(parent, destination, title.toString(), true); }
/** * Constructs a <CODE>PdfOutline</CODE>. * <P> * This is the constructor for an <CODE>outline entry</CODE>. * * @param parent the parent of this outline item * @param action the <CODE>PdfAction</CODE> for this outline item * @param title the title of this outline item * @param open <CODE>true</CODE> if the children are visible */ public PdfOutline(PdfOutline parent, PdfAction action, PdfString title, boolean open) { this(parent, action, title.toString(), open); }
/** * Constructs a <CODE>PdfOutline</CODE>. * <P> * This is the constructor for an <CODE>outline entry</CODE>. * * @param parent the parent of this outline item * @param action the <CODE>PdfAction</CODE> for this outline item * @param title the title of this outline item * @param open <CODE>true</CODE> if the children are visible */ public PdfOutline(PdfOutline parent, PdfAction action, PdfString title, boolean open) { this(parent, action, title.toString(), open); }
/** * Gets the title of this outline * @return the title as a String */ public String getTitle() { PdfString title = (PdfString)get(PdfName.TITLE); return title.toString(); }
/** * Gets the title of this outline * @return the title as a String */ public String getTitle() { PdfString title = (PdfString)get(PdfName.TITLE); return title.toString(); }
/** * Gets the title of this outline * @return the title as a String */ public String getTitle() { PdfString title = (PdfString)get(PdfName.TITLE); return title.toString(); }
layer = (PdfLayer)i.next(); if (layer.getTitle() == null) { key = layer.getAsString(PdfName.NAME).toString();
layer = (PdfLayer)i.next(); if (layer.getTitle() == null) { key = layer.getAsString(PdfName.NAME).toString();
layer = (PdfLayer)i.next(); if (layer.getTitle() == null) { key = layer.getAsString(PdfName.NAME).toString();
@Override public void invoke(ArrayList<PdfObject> operands, PdfContentStreamHandler handler, PdfDictionary resources) { String tagName = operands.get(0).toString().substring(1) .toLowerCase(Locale.ROOT); if ("artifact".equals(tagName) || "placedpdf".equals(tagName) || handler.contextNames.peek() == null) { tagName = null; } else if ("l".equals(tagName)) { tagName = "ul"; } PdfDictionary attrs = getBDCDictionary(operands, resources); if (attrs != null && tagName != null) { PdfString alternateText = attrs.getAsString(PdfName.E); if (alternateText != null) { handler.pushContext(tagName); handler.textFragments .add(new FinalText(alternateText.toString())); handler.popContext(); // ignore rest of the content of this element handler.pushContext(null); return; } else if (attrs.get(PdfName.TYPE) != null) { // ignore tag for non-tag marked content that sometimes // shows up. tagName = ""; } } handler.pushContext(tagName); }
float unscaledWidth) { super(null, pointToUserSpace(0, 0, textMatrix), pointToUserSpace(getStringWidth(text.toString(), gs), 0f, textMatrix), pointToUserSpace(1.0f, 0f, textMatrix), convertHeightToUser(gs.font.getFontDescriptor(DocumentFont.ASCENT, gs.fontSize),