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