How can I get PDF page size?
To get PDF page size, you can use Size() method of PdfPage object.
f, _ := os.Open("pdfFile.pdf") pdfReader, _ := pdf.NewPdfReader(f) // Get Page 1 page, _ := pdfReader.GetPage(1) // Get page size pageWidth, pageHeight, _ := page.Size()