PDFLineSeparatorView lineSeparatorWhite = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.WHITE);
PDFLineSeparatorView lineSeparatorBlack = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.BLACK);
// Get ViewView separatorView =lineSeparatorWhite.getView();
Example As Empty Space:
Line separator can also work as empty space as you can set background color as white and height lets say 8px, it will act as an empty space.