I have a problem that the PDF file has no start and stop limits, when I write the line it goes on and no line goes down, how can I do that?
This is a picture of the situation
This is the code I used
Paint paint = new Paint();
PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder((int) 585, 842, 1).create();
PdfDocument.Page mypage1 = pdfDocument.startPage(pageInfo);
Canvas canvas = mypage1.getCanvas();