We had an excellent solution for printing invoices directly into PDF to e-mail, but that seems to be lost because the 'save records/send as (PDF) produces a faulty PDF file now.
All too complicated... I don't have time to work this out.
What I did now is simply replace the step in which FileMaker used to produce the PDF into a print to PDF step. It produces a PDF file named invoice.pdf, which we save on the desktop. The rest of the script remains the same, meaning it prepares an e-mail and adds the attachment named 'invoice.pdf' from the desktop.
I think FileMaker will repair this bug soon. (Or at least, I hope...)
Thank you for your suggestions!
I chose a joker for this Question:
Christian, are you online?
Oh, before I forget to tell. Happened after upgrade from 14-15, for both Filemaker as FileMaker advanced.
Though I think you're aware of all the pdf-related bugs reported since then. There is a chance that this will work like a charm with MBS PlugIn.
Pretty sure, you'll get answer by Christian very soon …
I read something in the meantime, maybe the background image (a PDF) caused it, tried a simpler one, did not give a solution.
Well, the way to go is normally to use the Save PDF feature in FileMaker.
If the PDF is not right, check the fonts used and make sure you are using a supported layout.
Our DynaPDF.Optimize function can repair broken PDFs.
Or you use DynaPDF functions to write your PDFs using the plugin. That would work on server, too.
Here is my preferred approach to generating PDFs on a mac, linux / webservice: http://wethecomputerabusersamongst.blogspot.com/2016/06/filemaker-fmxmlresult-to-latex.html Works for FileMaker 5 and up.
I've also used PHP (with the FPDF library)
It works well, too.
You might like to take a look at my report of a similar issue that I had recently:
Save as PDF creating corrupt files
I could give no advice as to a solution because the issue went away, and normal service has been resumed. Your Print solution was my workaround while the issue persisted, but Save as PDF is preferable for various reasons.
Retrieving data ...