Add horizontal line separator between views.
PDFLineSeparatorView lineSeparatorWhite = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.WHITE);
PDFLineSeparatorView lineSeparatorBlack = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.BLACK);
// Get View
View separatorView = lineSeparatorWhite.getView();
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.
PDFLineSeparatorView emptySpace = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.WHITE);
emptySpace.setLayout(new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
8, 0));
pdfBody.addView(emptySpace);