/** * Returns a bitset representing the PageMode and PageLayout viewer preferences. * Doesn't return any information about the ViewerPreferences dictionary. * @return an int that contains the Viewer Preferences. */ public int getSimpleViewerPreferences() { return PdfViewerPreferencesImp.getViewerPreferences(catalog).getPageLayoutAndMode(); }
/** * @see com.lowagie.text.pdf.interfaces.PdfVersion#setPdfVersion(char) */ public void setPdfVersion(char version) { if (headerWasWritten || appendmode) { setPdfVersion(getVersionAsName(version)); } else { this.header_version = version; } }
/** * There's no difference with getPathIterator(AffineTransform at); * we just need this method to implement the Shape interface. */ public PathIterator getPathIterator(AffineTransform at, double flatness) { return new PolylineShapeIterator(this, at); }
/** * Sets the viewer preferences. * @param preferences the viewer preferences * @see PdfWriter#setViewerPreferences(int) */ public void setViewerPreferences(int preferences) { this.useVp = true; this.viewerPreferences.setViewerPreferences(preferences); }
/** * Gets the AcroForm object. * @return the PdfAcroform object of the PdfDocument */ PdfAcroForm getAcroForm() { return annotationsImp.getAcroForm(); }
/** * @see com.lowagie.text.pdf.interfaces.PdfVersion#setAtLeastPdfVersion(char) */ public void setAtLeastPdfVersion(char version) { if (version > header_version) { setPdfVersion(version); } }
/** Adds a viewer preference * @param key a key for a viewer preference * @param value the value for the viewer preference * @see PdfViewerPreferences#addViewerPreference */ public void addViewerPreference(PdfName key, PdfObject value) { useVp = true; this.viewerPreferences.addViewerPreference(key, value); }
/** * @see com.lowagie.text.pdf.interfaces.PdfVersion#addDeveloperExtension(com.lowagie.text.pdf.PdfDeveloperExtension) * @since 2.1.6 */ public void addDeveloperExtension(PdfDeveloperExtension de) { pdf_version.addDeveloperExtension(de); }
/** * Returns a bitset representing the PageMode and PageLayout viewer preferences. * Doesn't return any information about the ViewerPreferences dictionary. * @return an int that contains the Viewer Preferences. */ public int getSimpleViewerPreferences() { return PdfViewerPreferencesImp.getViewerPreferences(catalog).getPageLayoutAndMode(); }
/** * There's no difference with getPathIterator(AffineTransform at); * we just need this method to implement the Shape interface. */ public PathIterator getPathIterator(AffineTransform at, double flatness) { return new PolylineShapeIterator(this, at); }
/** * Sets the viewer preferences. * @param preferences the viewer preferences * @see PdfWriter#setViewerPreferences(int) */ public void setViewerPreferences(int preferences) { useVp = true; this.viewerPreferences.setViewerPreferences(preferences); }
/** * Gets the AcroForm object. * @return the PdfAcroform object of the PdfDocument */ PdfAcroForm getAcroForm() { return annotationsImp.getAcroForm(); }
/** * @see com.lowagie.text.pdf.interfaces.PdfVersion#setAtLeastPdfVersion(char) */ public void setAtLeastPdfVersion(char version) { if (version > header_version) { setPdfVersion(version); } }
/** Adds a viewer preference * @param key a key for a viewer preference * @param value the value for the viewer preference * @see PdfViewerPreferences#addViewerPreference */ public void addViewerPreference(PdfName key, PdfObject value) { useVp = true; this.viewerPreferences.addViewerPreference(key, value); }
/** * Returns an iteration object that defines the boundary of the polyline. * @param at the specified {@link AffineTransform} * @return a {@link PathIterator} that defines the boundary of this polyline. * @see java.awt.Shape#intersects(java.awt.geom.Rectangle2D) */ public PathIterator getPathIterator(AffineTransform at) { return new PolylineShapeIterator(this, at); }
/** * Sets the viewer preferences. * @param preferences the viewer preferences * @see PdfWriter#setViewerPreferences(int) */ public void setViewerPreferences(int preferences) { useVp = true; this.viewerPreferences.setViewerPreferences(preferences); }
/** * Gets the AcroForm object. * @return the PdfAcroform object of the PdfDocument */ PdfAcroForm getAcroForm() { return annotationsImp.getAcroForm(); }
/** * @see com.lowagie.text.pdf.interfaces.PdfVersion#setAtLeastPdfVersion(char) */ public void setAtLeastPdfVersion(char version) { if (version > header_version) { setPdfVersion(version); } }
/** Adds a viewer preference * @param key a key for a viewer preference * @param value the value for the viewer preference * @see PdfViewerPreferences#addViewerPreference */ public void addViewerPreference(PdfName key, PdfObject value) { this.useVp = true; this.viewerPreferences.addViewerPreference(key, value); }
/** * There's no difference with getPathIterator(AffineTransform at); * we just need this method to implement the Shape interface. */ public PathIterator getPathIterator(AffineTransform at, double flatness) { return new PolylineShapeIterator(this, at); }