michaelrsweet / pdfio

PDFio is a simple C library for reading and writing PDF files.
https://www.msweet.org/pdfio
Apache License 2.0
198 stars 44 forks source link

Update documentation #68

Closed devnibo closed 3 months ago

devnibo commented 4 months ago

While using the library I came across two things. I found a typo. The other thing is that I used spaces in the name parameter in the following function:

bool pdfioPageDictAddFont(pdfio_dict_t *dict, const char *name, pdfio_obj_t *obj);

Having whitespace characters in the font name led to a blank looking pdf when opening it with zathura or evince. Removing the whitespace fixed it. I thought it would be helpful for future users to mention this in the documentation.

I enjoy using the library. Thanks. Feel free to just close the pull request if you're not interested.

devnibo commented 4 months ago

Thanks for the clarification. I'll try to address that issue then in the zathura or evince project.