Hi,
I'm trying to append the following to a pdf file:
<OPENTAG>some text<ENDTAG>
The trouble is that when I use Writeln or Write it adds carriage return characters after each line (even though it's a single text string) which causes acrobat to complain that the file is corrupted.
Here is my code:
AssignFile(pdfFile, filename);
Append(pdfFile);
WriteLn(pdfFile, stringToAddToFile);
CloseFile(pdfFile);
How can I get rid of the carriage return? I'm a C++ programmer really and don't know much about Delphi. Is there any low level file functions that I can use that would give me more control over this?
Any help would be much appreciated.
I'm trying to append the following to a pdf file:
<OPENTAG>some text<ENDTAG>
The trouble is that when I use Writeln or Write it adds carriage return characters after each line (even though it's a single text string) which causes acrobat to complain that the file is corrupted.
Here is my code:
AssignFile(pdfFile, filename);
Append(pdfFile);
WriteLn(pdfFile, stringToAddToFile);
CloseFile(pdfFile);
How can I get rid of the carriage return? I'm a C++ programmer really and don't know much about Delphi. Is there any low level file functions that I can use that would give me more control over this?
Any help would be much appreciated.