Re: [NTG-pdftex] new pdftex snapshot
Thanks for the new snapshot. The following is Heiko's "null string" patch. Binary header is also added. best, Akira --- pdftex.ch.orig Fri May 20 18:32:32 2005 +++ pdftex.ch Mon May 23 21:50:44 2005 @@ -884,7 +884,13 @@ pdf_buf[6] := "."; pdf_buf[7] := "4"; pdf_buf[8] := pdf_new_line_char; -pdf_ptr := 9; +pdf_buf[9] := "%"; +pdf_buf[10] := 228; +pdf_buf[11] := 240; +pdf_buf[12] := 237; +pdf_buf[13] := 248; +pdf_buf[14] := pdf_new_line_char; +pdf_ptr := 15; pdf_gone := 0; zip_write_state := no_zip; pdf_minor_version_written := false; @@ -2018,8 +2024,10 @@ begin i := str_start[s]; j := i + length(s) - 1; - if (i > j) then + if (i > j) then begin + pdf_print("()"); return; {null string} + end; if (str_pool[i] = '(') and (str_pool[j] = ')') then begin pdf_print(s); return;
Hi Akira, On Mon, 23 May 2005, Akira Kakuto wrote:
Binary header is also added.
+pdf_buf[9] := "%"; +pdf_buf[10] := 228; +pdf_buf[11] := 240; +pdf_buf[12] := 237; +pdf_buf[13] := 248; +pdf_buf[14] := pdf_new_line_char;
i wonder what's special with particularily these numbers (other than they have their 7th bit set)? Is it a special check pattern? The PDF reference doesn't specify them in detail. 11100100 11110000 11101101 11111000 If i subtract 128, i get "dpmx". Any secret message? :-) Regards, Hartmut
On 2005-05-23 19:51:58 +0200, Hartmut Henkel wrote:
On Mon, 23 May 2005, Akira Kakuto wrote:
Binary header is also added.
+pdf_buf[9] := "%"; +pdf_buf[10] := 228; +pdf_buf[11] := 240; +pdf_buf[12] := 237; +pdf_buf[13] := 248; +pdf_buf[14] := pdf_new_line_char;
i wonder what's special with particularily these numbers (other than they have their 7th bit set)? Is it a special check pattern? The PDF
PDF reference, section 3.4.1: The body of binary PDFs should start with at least 4 characters >128. Akira, why these? Best regards Martin -- http://www.tm.oneiros.de
participants (3)
-
Akira Kakuto
-
Hartmut Henkel
-
Martin Schröder