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

Hyperlink not working in pdf #14

Open
AhmedSalamaM opened this issue Apr 6, 2020 · 8 comments
Open

Hyperlink not working in pdf #14

AhmedSalamaM opened this issue Apr 6, 2020 · 8 comments
Labels

Comments

@AhmedSalamaM
Copy link

hyperlink not working in pdf and it's only shows in blue color only and without click action

@tsv2013
Copy link
Member

tsv2013 commented Apr 7, 2020

Could you specify - what hyperlink are you asking about?

@gologames
Copy link
Contributor

gologames commented Apr 7, 2020

Hello,

As said in SurveyPDF documentation in constraints section Question File save files via RMB in Chrome only. So, unfortunately, you can't click on blue link to save file. But you can open PDF in Chrome and save file by clicking via right mouse button on blue link and choose Save link as... option

Thanks, Alex
SurveyJS Team

@AhmedSalamaM
Copy link
Author

AhmedSalamaM commented Apr 7, 2020 via email

@gologames
Copy link
Contributor

Hello,

In this case, please specify what certain links are you talking about? Please provide SurveyJSON with them

Thanks, Alex
SurveyJS Team

@AhmedSalamaM
Copy link
Author

AhmedSalamaM commented Apr 8, 2020 via email

@gologames
Copy link
Contributor

Hello,

Can't find attached PDF or SurveyJSON. Maybe you are using email client, but via GitHub attached files are missing

Thanks, Alex
SurveyJS Team

@AhmedSalamaM
Copy link
Author

AhmedSalamaM commented Apr 9, 2020 via email

@gologames
Copy link
Contributor

Hello,

Understood the problem. We will discuss it with team, but let me explain the situation. It is a difficult task to export html to PDF because no web-browser inside PDF document

We solve this task by render html to image when render to PDF if we detect that html is too complex. Here is SurveyPDF documentation about export html to PDF via image or via standard renderer. But standard render with your markup doesn't produces clickable link too

As a workaround you can use SurveyPDF adorners mechanism which allows to add some custom elements to produced PDF file. Here is live sample in plunker with adding clickable link in PDF to your html question. Is it good enough for you?

Thanks, Alex
SurveyJS Team

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

No branches or pull requests

3 participants