Re: [PHP-WIN] End of Page characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux