Package pdf

Class PDFStringHelper


  • public class PDFStringHelper
    extends java.lang.Object
    String manipulation methods
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFStringHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String makePDFString​(java.lang.String s)
      This converts a string into PDF.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFStringHelper

        public PDFStringHelper()
    • Method Detail

      • makePDFString

        public static java.lang.String makePDFString​(java.lang.String s)
        This converts a string into PDF. It prefixes ( or ) with \ and wraps the string in a ( ) pair.
        Parameters:
        s - String to convert
        Returns:
        String that can be placed in a PDF (or Postscript) stream