I am a happy user of the psfrag LaTeX package. Nervertheless, I sometimes need to use pdflatex to produce pdf document with hyperlinks.

But, since psfrag uses some special Postscript features, it is incompatible with pdflatex which directly generates the pdf document from the LaTeX source. And, there is no pdffrag package :-(

Then, I have developped for my personnal use a hack that uses latex + dvips + some ps to pdf filter, to generates one pdf figure for each ps figure, with the psfrag replacements.

It is hugly, but it is sufficient to me

More details can be found in the README, or the documentation

You can also find it on CTAN, in the /support directory.

### Other solutions

• pst-pdf, pd4pdf
See also these two packages (ps4pdf is deprecated and replaced by pst-pdf). which also seem to try to generate Pdf figure from Postscript code, in a more transparent way that mine. You can get it from CTAN.
• DrawAt
Matthijs Douze (another member from ENSEEIHT) has developped DrawAt, a solution for MacOS X only.
• unpsfrag
Félix Valado Pomarinho has developped a perl script: unpsfrag
• fragmaster
Tilman Vogel developped fragmaster, another perl-oriented solution.
• pstoedit and [X]fig
With [X]fig, you can already make a figure and, setting the special flag to a text zone, you already can put on your figures some LaTeX code, and export in the combined mode either in postcript or pdf.
In the combined Postscript/LaTeX, if your file is named `figure.fig`, it creates a `figure.pstex` file which is the postcript version of your fig figure without the special-tagged texts, and a `figure.pstex_t` file which juste include the `figure.pstex` (with the `\includegraphics` command) and adds the LaTeX text at the right place.
In the combined Pdf/LaTeX, this is the same except that `figure.pstex` is named `figure.pdf` and `figure.pstex_t` is named `figure.pdf_t` and includes `figure.pdf`.

If you like to avoid the graphic interface, this ca be done in command line with `fig2dev`.
```	  fig2dev -L  pstex_t figure.fig figure.pstex_t
fig2dev -L  pstex figure.fig figure.pstex
```
If you do not have a fig figure, you can transform a postcript file into a fig one with pstoedit (try `pstoedit -dis -f fig example.eps > example.fig `).
• figfrag
With figfrag, you can use the psfrag feature in your fig picture and create a standalone eps figure with the psfrag replacements.

Marc Boyer