/** * Begins a marked content sequence. This sequence will be tagged with the structure <CODE>struc</CODE>. * The same structure can be used several times to connect text that belongs to the same logical segment * but is in a different location, like the same paragraph crossing to another page, for example. * @param struc the tagging structure */ public void beginMarkedContentSequence(final PdfStructureElement struc) { beginMarkedContentSequence(struc, null); }
/** * This is just a shorthand to <CODE>beginMarkedContentSequence(tag, null, false)</CODE>. * @param tag the tag */ public void beginMarkedContentSequence(final PdfName tag) { beginMarkedContentSequence(tag, null, false); }
/** * Begins a marked content sequence. This sequence will be tagged with the structure <CODE>struc</CODE>. * The same structure can be used several times to connect text that belongs to the same logical segment * but is in a different location, like the same paragraph crossing to another page, for example. * @param struc the tagging structure */ public void beginMarkedContentSequence(final PdfStructureElement struc) { beginMarkedContentSequence(struc, null); }
/** * This is just a shorthand to <CODE>beginMarkedContentSequence(tag, null, false)</CODE>. * @param tag the tag */ public void beginMarkedContentSequence(final PdfName tag) { beginMarkedContentSequence(tag, null, false); }
@Override public void beginFeature(long id, ResultSet rs) { try { String attributeName; attributeName = rs.getString(fieldName); PdfStructureElement e = new PdfStructureElement(top, new PdfName(attributeName)); PdfDictionary userProperties = new PdfDictionary(); userProperties.put(PdfName.O, PdfName.USERPROPERTIES); PdfArray properties = new PdfArray(); SpatialResultSetMetaData metaData = rs.getMetaData().unwrap(SpatialResultSetMetaData.class); int geometryField = metaData.getFirstGeometryFieldIndex(); PdfDictionary property = new PdfDictionary(); property.put(PdfName.N, new PdfString(metaData.getColumnName(geometryField))); property.put(PdfName.V, new PdfString(rs.getString(geometryField))); properties.add(property); userProperties.put(PdfName.P, properties); e.put(PdfName.A, userProperties); pTemp = cb.createTemplate(width, height); cb.beginMarkedContentSequence(e); } catch (SQLException ex) { Logger.getLogger(PdfRendererWithAttributes.class.getName()).log(Level.SEVERE, null, ex); } }
if (inText) endText(); beginMarkedContentSequence(element.getRole(), propertiesDict, true); if (inTextLocal) beginText(true); endText(); if (null != element.getAccessibleAttributes() && null != element.getAccessibleAttribute(PdfName.E)) { beginMarkedContentSequence(structureElement, element.getAccessibleAttribute(PdfName.E).toString()); element.setAccessibleAttribute(PdfName.E, null); } else { beginMarkedContentSequence(structureElement);
if (inText) endText(); beginMarkedContentSequence(element.getRole(), propertiesDict, true); if (inTextLocal) beginText(true); endText(); if (null != element.getAccessibleAttributes() && null != element.getAccessibleAttribute(PdfName.E)) { beginMarkedContentSequence(structureElement, element.getAccessibleAttribute(PdfName.E).toString()); element.setAccessibleAttribute(PdfName.E, null); } else { beginMarkedContentSequence(structureElement);
canvas.beginMarkedContentSequence(PdfName.REVERSEDCHARS); rtl = true; canvas.beginMarkedContentSequence(PdfName.REVERSEDCHARS); rtl = true;
canvas.beginMarkedContentSequence(PdfName.REVERSEDCHARS); rtl = true; canvas.beginMarkedContentSequence(PdfName.REVERSEDCHARS); rtl = true;