Recent
![Using PSTricks with pdflatex on Overleaf](https://writelatex.s3.amazonaws.com/published_ver/24016.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240629T165216Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240629/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=c4631fc07be7e9e563fa0d16f0f2862e99d88e46d18a69de84aa3483984fd821)
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