PDF Export Test Page
| 3 Platforms |
2 Methods |
A4 Page Size |
∞ Pages |
| Platform | Engine | Status |
|---|---|---|
| B4A (Android) | PrintDocumentAdapter | Ready |
| B4i (iOS) | WKWebView.createPDF | Ready |
| B4J (Desktop) | WebEngine + Browser | New |
Sample business data to test multi-column rendering and alignment.
| Region | H1 | H2 | Total |
|---|---|---|---|
| North America | $262,700 | $329,200 | $591,900 |
| Europe | $204,000 | $241,300 | $445,300 |
| Asia Pacific | $160,600 | $195,000 | $355,600 |
| Latin America | $90,100 | $109,800 | $199,900 |
| Middle East | $67,000 | $82,500 | $149,500 |
| ✓ | Full-content PDF — captures entire page, not just the visible viewport |
| ✓ | Multi-page support — long content paginates automatically |
| ✓ | Silent generation on mobile — no print dialog on Android or iOS |
| ✓ | System share sheet on mobile — AirDrop, email, save to files |
| ✓ | A4 page size — standard document format |
| ✓ | Tables and complex layouts render faithfully |
| ✓ | Cross-platform API — same code on Android, iOS, and Desktop |
| ✓ | Dependency-free on iOS and B4J — Android requires one small jar |
This section verifies that the PDF correctly paginates across multiple pages.
Android: The WebView's createPrintDocumentAdapter method creates a print adapter that re-renders the full HTML content. The PdfPrint helper class (compiled into a jar) lives in the android.print package to access package-protected callback classes.
iOS: WKWebView's native createPDF method (iOS 14+) generates PDF data directly from the web content. The data is received as NSData via an async callback, converted to a byte array, and shared via UIActivityViewController.
Desktop: The WebEngine's executeScript method extracts the full HTML content from the WebView. A FileChooser save dialog lets the user choose where to save the HTML file, which is then opened in the default browser for printing or saving as PDF.
| Name | Department | Location | Status |
|---|---|---|---|
| Sarah Mitchell | Engineering | Sydney | Active |
| James Chen | Design | Melbourne | Active |
| Emma Wilson | Marketing | London | Active |
| Michael Brown | Engineering | New York | Active |
| Olivia Taylor | Product | Toronto | Active |
| Daniel Kim | Engineering | Singapore | Active |
| Sophie Anderson | Sales | Sydney | On Leave |
| Liam O'Brien | Support | Dublin | Active |
| Isabella Garcia | Design | Auckland | Active |
| Noah Patel | Engineering | London | Active |
| Ava Johansson | Marketing | Stockholm | Active |
| W. de Vries | Product | Amsterdam | Contractor |
| Month | Revenue | Users | Trend |
|---|---|---|---|
| January | $48,200 | 12,340 | Up 12% |
| February | $44,800 | 11,890 | Down 7% |
| March | $56,100 | 14,520 | Up 25% |
| April | $52,400 | 13,780 | Down 7% |
| May | $61,300 | 15,920 | Up 17% |
| June | $67,800 | 17,450 | Up 11% |
| July | $63,200 | 16,340 | Down 7% |
| August | $71,500 | 18,670 | Up 13% |
| September | $68,900 | 17,890 | Down 4% |
| October | $74,200 | 19,340 | Up 8% |
| November | $82,100 | 21,560 | Up 11% |
| December | $89,400 | 23,120 | Up 9% |