Re: End of Page characters
| From: | sven | Date: | Thu, 28 Aug 2003 08:57:39 +0000 |
| Subject: | Re: End of Page characters | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21268@lists.php.net to get a copy of this message | ||
hi,
good luck in parsing .doc-files!
but if you try your page-break, save the file and view it in a hex-editor,
your page-break is in fact 'x0E'. and hexdec('0E') gives you 14.
hth SVEN
Gerardo Rojas wrote:
> Yes, holding down the ALT key and using the numeric keypad and typing
> 014, does force a page break in MS Word. My question now is how do I
> detect these values in PHP? I want to take an MS Word document and
> parse it with PHP, breaking up each page (in a multiple page MS Word
> document) into a file. These files will eventually turn into a HTML
> files? Any suggestions?
>
> --
> Gerardo S. Rojas
> mailto:grojas@strategicinc.com
>
>
> -----Original Message-----
> From: Sven Schnitzke [mailto:Sven.Schnitzke@t-online.de]
> Sent: Tuesday, August 26, 2003 2:33 AM
> To: Gerardo Rojas
> Subject: AW: [PHP-WIN] End of Page characters
>
>
> Hi,
> To be precise: in MS Winword
> - \n (ASCII 010) is an unprintable character with no special meaning.
> - ASCII 011 makes up a forced newline within a paragraph
> - \r (ASCII 013) makes up a paragraph break
> - ASCII 014 makes up a page break
>
> Verify by entering these holding down ALT and entering all three
> digits
> of the ASCII code _using the numeric keypad_.
> Set extras->options->display (section unprintable characters)->all to
> show.
>
> Raw textfiles holding these special chars _should_ keep the meaning
> through conversion. Did it in the past versions anyway, but didn't
> use it
> for
> quite a while now.
>
> Would you mind letting me know if it still works?
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: Gerardo Rojas [SMTP:grojas@strategicinc.com]
>> Gesendet am: Montag, 25. August 2003 17:53
>> An: php-windows@lists.php.net
>> Betreff: [PHP-WIN] End of Page characters
>>
>> Quick question: Is there any special characters that make up a Page
> Break in MS Word? I know that "\r\n" make a line break and carriage
> return. Is there anything for Page Break?
>>
>>
>> --
>> Gerardo S. Rojas
>> mailto:grojas@strategicinc.com