pageSpacing property

double pageSpacing

Represents the spacing (in pixels) between the PDF pages.

If this property is set as 0.0, then the spacing between the PDF pages will be removed.

Defaults to 4.0

This example demonstrates how to set the page spacing in the SfPdfViewer.

class MyAppState extends State<MyApp>{

late PdfViewerController _pdfViewerController;

void initState(){
 _pdfViewerController = PdfViewerController();

 Widget build(BuildContext context) {
  return MaterialApp(
     home: Scaffold(
       appBar: AppBar(
          title: Text('Syncfusion Flutter PdfViewer'),
       body: SfPdfViewer.asset(
         controller: _pdfViewerController,
         pageSpacing: 0.0,


final double pageSpacing;