I have an mCanvas object with all the drawings in it. Now, I want to use the same canvas into my PdfDocument so that I can save it as a PDF file as well.
PdfDocument pdfDocument = new PdfDocument();
PageInfo pageInfo = new PageInfo.Builder(mCanvas.getWidth(),
mCanvas.getHeight(), 1).create();
Page pdfPage = pdfDocument.startPage(pageInfo);
//pdfPage.setCanvas(mCanvas); <--- this is what I want to achieve
Is this possible with PdfDocument?