I'm downloading files from a web site.there pdf files..for some reason the web site is appending the html page source code to the end of pdf file.
So the pdf files will not open..i can open the pdf files in ultraedit and search the doc for "EOF.....<!DOCTYPE html PUBLIC" and cut everything after the EOF and add 0A to the end and the pdf file is fixed..
My problem is all of the pdf files at this web site are doing this..
how can i code something that will start at the end of the pdf file and scan backwards..find the offending code's address and save from the beginning of the file to that address location and add the 0A to the end of it.
or which ever way would be better beginning to end or end to beginning...
So the pdf files will not open..i can open the pdf files in ultraedit and search the doc for "EOF.....<!DOCTYPE html PUBLIC" and cut everything after the EOF and add 0A to the end and the pdf file is fixed..
My problem is all of the pdf files at this web site are doing this..
how can i code something that will start at the end of the pdf file and scan backwards..find the offending code's address and save from the beginning of the file to that address location and add the 0A to the end of it.
or which ever way would be better beginning to end or end to beginning...