Example usage for com.lowagie.text.pdf PdfName L2R

List of usage examples for com.lowagie.text.pdf PdfName L2R

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfName L2R.

Prototype

PdfName L2R

To view the source code for com.lowagie.text.pdf PdfName L2R.

Click Source Link

Document

A name

Usage

From source file:org.sejda.impl.itext.util.ViewerPreferencesUtils.java

License:Apache License

/**
 * Mapping between Sejda and iText direction constants
 * /*  w  ww  .  j  a  va  2 s  . co m*/
 * @param direction
 * @return the iText direction constant
 */
public static PdfName getDirection(PdfDirection direction) {
    if (PdfDirection.RIGHT_TO_LEFT.equals(direction)) {
        return PdfName.R2L;
    }
    return PdfName.L2R;
}