> For the complete documentation index, see [llms.txt](https://notes.tejpratapsingh.com/pdf-creator-android/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.tejpratapsingh.com/pdf-creator-android/available-views/pdflineseparatorview.md).

# PDFLineSeparatorView

Separate Views OR Create Space

Add horizontal line separator between views.

#### Example:

```java
PDFLineSeparatorView lineSeparatorWhite = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.WHITE);
PDFLineSeparatorView lineSeparatorBlack = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.BLACK);
// Get View
View 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.

```java
PDFLineSeparatorView emptySpace = new PDFLineSeparatorView(getApplicationContext()).setBackgroundColor(Color.WHITE);
emptySpace.setLayout(new LinearLayout.LayoutParams(
        LinearLayout.LayoutParams.MATCH_PARENT,
        8, 0));
pdfBody.addView(emptySpace);
```
