Android-XML-to-PDF-Generator icon indicating copy to clipboard operation
Android-XML-to-PDF-Generator copied to clipboard

This library is for convert XML to PDF very easily using Step Builders Pattern

Results 16 Android-XML-to-PDF-Generator issues
Sort by recently updated
recently updated
newest added

fun generatePdf() { if (!::targetView.isInitialized) { Log.e("PdfGenerator", "Target view is not initialized.") return } PdfGenerator.getBuilder() .setContext(componentActivity) .fromViewIDSource() .fromViewID(componentActivity, targetView.id) .setPageSize(PdfGenerator.PageSize.A4) // Set A4 size here .setFileName("Demo-Text") .actionAfterPDFGeneration(PdfGenerator.ActionAfterPDFGeneration.SHARE) .savePDFSharedStorage(observer) .build(object :...

When the view is in dark mode, the pdf is not legible because the font color remains white, but the background also becomes white in the pdf.

Showing following error Denied permission: android.permission.READ_EXTERNAL_STORAGE Denied permission: android.permission.WRITE_EXTERNAL_STORAGE All necessary permission is not granted by user. Please do that first

What is the recommended way to change the theme of the views that the PDF gets generated from? I would prefer the PDF always to use the light mode, even...

PDFGenerator.class: 420 ``` if (xmlToPDFLifecycleObserver != null) { xmlToPDFLifecycleObserver.setPdfSaveListener(uri -> { writePDFOnSavedBlankPDFFile(document, uri); }); Intent intent; intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); intent.putExtra(Intent.EXTRA_TITLE, fileName); intent.addCategory(Intent.CATEGORY_OPENABLE); getPDFIntent(fileFinalResult, intent); xmlToPDFLifecycleObserver.launchPDFSaverPicker(intent); } else { writePDF(document,...

Update the gradle file from 33 to 35