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

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

Introduction

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

Prototype

public boolean isFree() 

Source Link

Document

Gets the xref 'free' attribute.

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