Skip to content

Commit

Permalink
moved whitespace pocs to subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
angea committed Aug 24, 2018
1 parent b4cfb8f commit b2b79c1
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 34 deletions.
34 changes: 0 additions & 34 deletions pdf/README.md
Expand Up @@ -4,37 +4,3 @@
- W: yes, with warnings (Adobe asks to save when closing, Firefox shows a warning)
- E: empty page only (opens but unexpectedly without any displayed content)
- N: not working

# Whitespace

Officially:
- PDF whitespace can be 00 (NULL), 0x09 (TAB), 0x0C (Form Feed), and the return characters 0A and 0D.
- Newlines can be made of Linux standard (0A) `text` (the standard one), OS X (0D) `text-osx`, and Windows (0D 0A) `text-win`.

However:
- it's not clear where characters can be different from SPACE `20`, as adding more of them lowers the compatibility (see `ws00`, `ws00max`, `ws00max2`)
- while `0C` is official, it's not supported by Adobe.
- for unclear reasons, Chrome supports `80` and `FF` as whitespace (cf PoC||GTFO 14:10).
- newlines types can also be used together in the same file `mixedNL`.

Since XREF entries are supposedly separated by 20 characters, including newlines, then newlines of 1 character have to be pre-pended with space.

file | Adobe | Chrome | OS X | Firefox | Sumatra
:-- | :-: | :-: | :-: | :-: | :-: |
text (linux NL) | Y | Y | Y | Y | Y
text-win | Y | Y | Y | Y | Y
text-osx | Y | Y | Y | Y | Y
text-mixedNL | Y | Y | Y | Y | Y
| | | | |
text-ws00 | W | Y | Y | Y | Y
text-ws00max | Y | Y | N | N | N
text-ws00max2 | N | Y | N | N | N
text-ws09 | Y | Y | N | Y | Y
text-ws09max | Y | Y | N | Y | N
text-ws0A | Y | Y | Y | Y | Y
text-ws0C | N | Y | N | Y | Y
text-ws0Cmax | N | Y | N | N | N
text-ws0D | W | Y | Y | Y | Y
| | | | |
text-ws80 | N | Y | N | N | N
text-wsFF | N | Y | N | N | N
40 changes: 40 additions & 0 deletions pdf/syntax/whitespace/README.md
@@ -0,0 +1,40 @@
# Content of tables

- Y: yes
- W: yes, with warnings (Adobe asks to save when closing, Firefox shows a warning)
- E: empty page only (opens but unexpectedly without any displayed content)
- N: not working

# Whitespace

Officially:
- PDF whitespace can be 00 (NULL), 0x09 (TAB), 0x0C (Form Feed), and the return characters 0A and 0D.
- Newlines can be made of Linux standard (0A) `text` (the standard one), OS X (0D) `text-osx`, and Windows (0D 0A) `text-win`.

However:
- it's not clear where characters can be different from SPACE `20`, as adding more of them lowers the compatibility (see `ws00`, `ws00max`, `ws00max2`)
- while `0C` is official, it's not supported by Adobe.
- for unclear reasons, Chrome supports `80` and `FF` as whitespace (cf PoC||GTFO 14:10).
- newlines types can also be used together in the same file `mixedNL`.

Since XREF entries are supposedly separated by 20 characters, including newlines, then newlines of 1 character have to be pre-pended with space.

file | Adobe | Chrome | OS X | Firefox | Sumatra
:-- | :-: | :-: | :-: | :-: | :-: |
text (linux NL) | Y | Y | Y | Y | Y
text-win | Y | Y | Y | Y | Y
text-osx | Y | Y | Y | Y | Y
text-mixedNL | Y | Y | Y | Y | Y
| | | | |
text-ws00 | W | Y | Y | Y | Y
text-ws00max | Y | Y | N | N | N
text-ws00max2 | N | Y | N | N | N
text-ws09 | Y | Y | N | Y | Y
text-ws09max | Y | Y | N | Y | N
text-ws0A | Y | Y | Y | Y | Y
text-ws0C | N | Y | N | Y | Y
text-ws0Cmax | N | Y | N | N | N
text-ws0D | W | Y | Y | Y | Y
| | | | |
text-ws80 | N | Y | N | N | N
text-wsFF | N | Y | N | N | N
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b2b79c1

Please sign in to comment.