Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a default title for outline items, to prevent display issues if the title is missing #7031

Merged
merged 1 commit into from
Feb 26, 2016
Merged

Add a default title for outline items, to prevent display issues if the title is missing #7031

merged 1 commit into from
Feb 26, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

Open http://www.puolustusvoimat.fi/wcm/61ba4180411e702ea19ee9e364705c96/luonnonmuonaohjelmalumo1985.pdf?MOD=AJPERES#pagemode=bookmarks.

Note how the outline looks entirely empty, but hovering over it you'll see that there are entries present. There's two separate issues here, first of all the fact that you cannot visually make out the outline items, and secondly that the lack of text means that the clickable area becomes too small.

In Adobe Reader this issue is somewhat mitigated, since they use an icon for every item. For PDF.js, the easist way to address this seems to be making use of a default title.
This issue should be very rare in practice, but given the simplicity of the solution I think that we should fix this.

…he title is missing

Open http://www.puolustusvoimat.fi/wcm/61ba4180411e702ea19ee9e364705c96/luonnonmuonaohjelmalumo1985.pdf?MOD=AJPERES#pagemode=bookmarks.

Note how the outline looks entirely empty, but hovering over it you'll see that there are entries present. There's two separate issues here, first of all the fact that you cannot visually make out the outline items, and secondly that the lack of text means that the clickable area becomes too small.

In Adobe Reader this issue is somewhat mitigated, since they use an icon for every item. For PDF.js, the easist way to address this seems to be making use of a default title.
This issue should be *very* rare in practice, but given the simplicity of the solution I think that we should fix this.
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/8deeb7639b6b322/output.txt

timvandermeij added a commit that referenced this pull request Feb 26, 2016
Add a default title for outline items, to prevent display issues if the title is missing
@timvandermeij timvandermeij merged commit 0c19d84 into mozilla:master Feb 26, 2016
@timvandermeij
Copy link
Contributor

Looks good, thank you! I keep on being amazed by the mess that some PDF generators produce, but this is the most reasonable solution in my opinion too.

@Snuffleupagus Snuffleupagus deleted the outline-default-title branch February 26, 2016 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants