Example usage for org.apache.pdfbox.pdfwriter COSWriterXRefEntry getOffset

List of usage examples for org.apache.pdfbox.pdfwriter COSWriterXRefEntry getOffset

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdfwriter COSWriterXRefEntry getOffset.

Prototype

public long getOffset() 

Source Link

Document

This will get the offset into the document.

Usage

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();
}