fix(pdf): make footer and all content stay compact and strictly within half-sheet area

This commit is contained in:
=
2026-09-21 22:37:39 -04:00
parent 9263e3486f
commit dc39eab3ae
5 changed files with 91 additions and 60 deletions
+1 -2
View File
@@ -104,7 +104,7 @@ void main() {
});
group('PrescriptionPdfService Tests', () {
test('builds prescription pdf bytes with correct page format', () async {
test('builds prescription pdf bytes with correct page format and layout', () async {
final bytes = await PrescriptionPdfService.buildPrescriptionPdf(
doctorName: 'Dr. Luis A. Castro Sosa',
specialty: 'Cirujano Urólogo',
@@ -115,7 +115,6 @@ void main() {
);
expect(bytes, isNotEmpty);
// Valid PDF magic header %PDF
expect(bytes.sublist(0, 4), equals([0x25, 0x50, 0x44, 0x46]));
});
});