Why do I get a "Could not find PdfGraphics2D" error?
iText 5 is the previous major version of iText's leading PDF SDK. iText 5 has been EOL, and is no longer developed. Switch your project to iText 7, integrating the latest developments. Check related iText 7 content!