List of usage examples for org.apache.pdfbox.pdfwriter COSWriterXRefEntry isFree
public boolean isFree()
From source file:com.aaasec.sigserv.csspsupport.pdfbox.modifications.CsCOSWriter.java
License:Apache License
private void writeXrefEntry(COSWriterXRefEntry entry) throws IOException { String offset = formatXrefOffset.format(entry.getOffset()); String generation = formatXrefGeneration.format(entry.getKey().getGeneration()); getStandardOutput().write(offset.getBytes("ISO-8859-1")); getStandardOutput().write(SPACE);/* w w w .j a v a 2 s. com*/ getStandardOutput().write(generation.getBytes("ISO-8859-1")); getStandardOutput().write(SPACE); getStandardOutput().write(entry.isFree() ? XREF_FREE : XREF_USED); getStandardOutput().writeCRLF(); }