List of usage examples for org.apache.pdfbox.pdfwriter COSWriterXRefEntry getOffset
public long getOffset()
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);//from w w w . j av a2 s. co m getStandardOutput().write(generation.getBytes("ISO-8859-1")); getStandardOutput().write(SPACE); getStandardOutput().write(entry.isFree() ? XREF_FREE : XREF_USED); getStandardOutput().writeCRLF(); }