Stripping invalid characters from a PDF in PHP -


we're getting pdfs vendor have 58,000+ null characters following legal end of document %%eof. we're working vendor see if can correct it, want ahead of issue in case can't.

using php (or classic asp, though doubt that's possible) want

  • find eof marker

  • strip after

  • and resave file valid pdf.

i've not worked binary files before , have vague idea of start.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -