Debug printing and PDF generation issues in web applications
Help me debug print/PDF generation issues.
**Technology:** {{TECHNOLOGY}}
**Framework:** {{FRAMEWORK}}
**Code generating PDF/print:**
```{{LANGUAGE}}
{{CODE}}
```
**HTML/CSS for printing:**
```html
{{HTML_CSS}}
```
**Print CSS:**
```css
{{PRINT_CSS}}
```
**Problem:** {{PROBLEM}}
**Expected output:** {{EXPECTED}}
**Actual output:** {{ACTUAL}}
Please provide:
1. **Layout Analysis**: Why print layout differs from screen
2. **CSS Media Queries**: Check @media print rules
3. **Page Breaks**: Handle page break issues
4. **PDF Library Issues**: Debug PDF generation library
5. **Fixed Code**: Corrected implementation
6. **Cross-Browser Print**: Handle browser print differences
7. **Testing Tips**: How to test print output
8. **Optimization**: Optimize for print performanceOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{TECHNOLOGY][{FRAMEWORK][{LANGUAGE][{CODE][{HTML_CSS][{PRINT_CSS][{PROBLEM][{EXPECTED][{ACTUAL]