php pdf generators losing content when saved (content visible on screen)
Posted on 2014-10-11
I have inherited a website which makes lots of pdf files. Luckily for me sometimes it uses fpdf, sometimes tcpdf, sometimes mpdf. Its a joy to wade through.
But i find this curious. The website generates the pdf files (haphazardly but they are made) but then when the files are saved or emailed sometimes bits of the document got missing like a logo or a contents page.
I would have thought that once the file had been generated that was it and everything was complete. I dont understand why emailing or saving the file loses information.
Because the code is is such a mess I am hoping you might give me some ideas before i post sections that might be relevant as its very hard to tell
But in theory before looking at this code. How is it possible that saving a pregenerated pdf can lose data?