surveyjs_vue_quickstart icon indicating copy to clipboard operation
surveyjs_vue_quickstart copied to clipboard

Hyperlink not working in pdf

Open AhmedSalamaM opened this issue 5 years ago • 8 comments

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

AhmedSalamaM avatar Apr 06 '20 16:04 AhmedSalamaM

Could you specify - what hyperlink are you asking about?

tsv2013 avatar Apr 07 '20 09:04 tsv2013

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

gologames avatar Apr 07 '20 10:04 gologames

my question is very simple i want links in attached pdf to be clickable CDC link

thanks

On Tue, Apr 7, 2020 at 12:05 PM gologames [email protected] wrote:

Hello,

As said in SurveyPDF documentation https://surveyjs.io/Documentation/Pdf-Export 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 ans choose Save link as... option

Thanks, Alex SurveyJS Team

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/surveyjs/surveyjs_vue_quickstart/issues/14#issuecomment-610297316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEQGLCCUFI75JUJDRKRB2TDRLL3GFANCNFSM4MCNA3HA .

AhmedSalamaM avatar Apr 07 '20 17:04 AhmedSalamaM

Hello,

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

Thanks, Alex SurveyJS Team

gologames avatar Apr 07 '20 20:04 gologames

kindly find attached pdf and json file

On Tue, Apr 7, 2020 at 10:53 PM gologames [email protected] wrote:

Hello,

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

Thanks, Alex SurveyJS Team

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/surveyjs/surveyjs_vue_quickstart/issues/14#issuecomment-610614900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEQGLCFMCKDSDVP23H2BLF3RLOHGFANCNFSM4MCNA3HA .

AhmedSalamaM avatar Apr 08 '20 20:04 AhmedSalamaM

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

gologames avatar Apr 09 '20 02:04 gologames

Hello, You can download it from samehStabelV342020.json https://drive.google.com/file/d/1BP9c04zOAEQlv-XyHzQQX4vdB_O9AwI0/view?usp=drivesdk

survey_resultLink.pdf https://drive.google.com/file/d/1UILVfq4MSyhbHMZ0ovRpEmdxdSjcVy9D/view?usp=drivesdk

https://drive.google.com/file/d/1BP9c04zOAEQlv-XyHzQQX4vdB_O9AwI0/view?usp=drivesdk

https://drive.google.com/file/d/1UILVfq4MSyhbHMZ0ovRpEmdxdSjcVy9D/view?usp=drivesdk

On Thu, 9 Apr 2020, 4:53 am gologames, [email protected] wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/surveyjs/surveyjs_vue_quickstart/issues/14#issuecomment-611299057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEQGLCBPRZATXTDFH7GRD5TRLU2A7ANCNFSM4MCNA3HA .

AhmedSalamaM avatar Apr 09 '20 02:04 AhmedSalamaM

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

gologames avatar Apr 09 '20 03:04 gologames