Recent
![Using PSTricks with pdflatex on Overleaf](https://writelatex.s3.amazonaws.com/published_ver/24016.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240629T170027Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240629/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7e1a1e6d03aee35cb19b272933a9a8f401f607840d41ff7d8f36102f15451a23)
Using PSTricks with pdflatex on Overleaf
PSTricks drawings can't be compiled under pdflatex and lualatex (Frequently done errors #5). Instead, compilation with XeLaTeX is preferred if you need to use .jpg/.png/.pdf images in your project.
But if you absolutely need to compile with pdflatex, this example demonstrates how to use PStricks with pdflatex using auto-pst-pdf on Overleaf (But you still can't use .jpg/.png/.pdf images within your PSTricks drawings).
Overleaf