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

Links in the PDF are wrong #65

Open
tealaforgia opened this issue Sep 13, 2021 · 3 comments
Open

Links in the PDF are wrong #65

tealaforgia opened this issue Sep 13, 2021 · 3 comments

Comments

@tealaforgia
Copy link

In the PDF file the link domain is wrong (127.0.0.1 instead of genderdysphoria.fyi). Also in the Table of Contents they should allow you to move through PDF, instead of opening the correspondent section on the site.

@Twipped
Copy link
Contributor

Twipped commented Sep 17, 2021

The former is my bad, I generated the PDF from localhost. Will fix.

The later... I'll look into.

@CoolDotty
Copy link

The links can sort of be fixed by printing with

google-chrome --host-resolver-rules="MAP genderdysphoria.fyi 127.0.0.1:8000" --headless --print-to-pdf-no-header --run-all-compositor-stages-before-draw --print-to-pdf="./gdb.pdf" http://genderdysphoria.fyi/en/printable/index.html

The links in printable should probably be anchor links instead of domain ones though.

@aytvill
Copy link
Contributor

aytvill commented Jul 30, 2024

The problem is still present.

Also, single document PDF file has always implied that internet is not needed to read it, so unless it's meant to be external 'URI which points to internet', it's rather internal document link. Content table is ideal demonstration - these links shall be internal ones, as it is content index for same file.

I agree with @CoolDotty hint that instead of full URLs it might be only anchors based on use of hash sign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants