Remove x chars from end of binary?

  • Thread starter Thread starter vbMark
  • Start date Start date
V

vbMark

Hello,

I've merged two PDF files but only one shows up. I think that I just need
to remove the %%EOF from the end of the first file.

How can I do that?

Thanks!
 
vbMark said:
I've merged two PDF files but only one shows up. I think that I just need
to remove the %%EOF from the end of the first file.

How can I do that?

You need to sort out whether they're binary files or text files - if
they're binary files, you need to think in terms of bytes rather than
characters.

If this is related to your question about appending files, the easiest
thing to do would be to decrement the Position of the writing stream by
5 before you start writing anything.

However, I *suspect* that there's rather more to the PDF format than
that. There are very few file formats which allow you to merge two
files just by copying one after another.
 
You need to sort out whether they're binary files or text files - if
they're binary files, you need to think in terms of bytes rather than
characters.

If this is related to your question about appending files, the easiest
thing to do would be to decrement the Position of the writing stream
by 5 before you start writing anything.

However, I *suspect* that there's rather more to the PDF format than
that. There are very few file formats which allow you to merge two
files just by copying one after another.

Yes, I agree. I've decided to go with a third-party solution.

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top