0

I've been looking for creating a pdf using php without using a library but when I was looking on google for this I am not being able find any information how a pdf is made within php. Now I know the simple answer is 'Look at the code of an existing library'. But this does not give me much detail and how/why certain lines of codes are being used and what is or what isn't bad practice.

I hope, any of you have some prior experience with this and can help me out.

Imran
  • 4,582
  • 2
  • 18
  • 37
nomakta
  • 13
  • 6
  • 1
    Well you could throw a PDF header pretty easily.. what do you require? Why not just use the existing libraries? – user3783243 Apr 25 '19 at 20:14
  • Possible duplicate of [I want to create a PDF Writer like iTextSharp not use iTextSharp - Creating PDFs from scratch](https://stackoverflow.com/questions/53041830/i-want-to-create-a-pdf-writer-like-itextsharp-not-use-itextsharp-creating-pdfs) – JosephA Apr 26 '19 at 04:00
  • You can create a PDF document without libraries, but you will only be able to do this for very trivial PDF files. Very quickly you will see that PDF is complicated which is why you need a library. – Paul Jowett Apr 29 '19 at 03:15

0 Answers0