简体   繁体   中英

How would I make an pdf without using an php library?

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.

You can learn specification (for example this https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf ) and write your own library or component.

Or just use simple library fpdf http://www.fpdf.org/ (this is recommended).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM