From Web Page : <a href "relative/..."> gets converted to absolute file:/// link  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

zarkogajic
User
Posts: 1483
Joined: Thu Sep 05, 2019 12:35 pm

From Web Page : <a href "relative/..."> gets converted to absolute file:/// link

Post by zarkogajic »

Hi Support,

I'm playing with the "From Web Page" to convert an HTML document to PDF.

All looks fine except one problem with how links are created from <a href... >'s.

If the location of html.html is "c:\folder" and there's "<a href="subfolder/file.pdf" />link</a>", the resulting PDF will have an URI action link annotation, but the URI property will look like "file:///c:/folder/subfolder/file.pdf" (so absolute) instead of just "subfolder/file.pdf" (relative).

As a result: links no longer work if the pdf is moved elsewhere (along with subfolder).


-žarko
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11087
Joined: Wed Jan 03, 2018 6:52 pm

Re: From Web Page : <a href "relative/..."> gets converted to absolute file:/// link

Post by Daniel - PDF-XChange »

Hello, zarkogajic

Thank you for bringing this up, I have reproduce it and passed it along for review.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
zarkogajic
User
Posts: 1483
Joined: Thu Sep 05, 2019 12:35 pm

Re: From Web Page : <a href "relative/..."> gets converted to absolute file:/// link  SOLVED

Post by zarkogajic »

Hi Dan,

Tx.

User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

From Web Page : <a href "relative/..."> gets converted to absolute file:/// link

Post by Stefan - PDF-XChange »

:)
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11087
Joined: Wed Jan 03, 2018 6:52 pm

Re: From Web Page : <a href "relative/..."> gets converted to absolute file:/// link

Post by Daniel - PDF-XChange »

Hello,

I am sorry to report that The Dev team looked into this, the conversion of these items is handled by the WebView side of things and is unfortunately out of our control.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
zarkogajic
User
Posts: 1483
Joined: Thu Sep 05, 2019 12:35 pm

Re: From Web Page : <a href "relative/..."> gets converted to absolute file:/// link

Post by zarkogajic »

Hi Dan,

Bah. Ok, thanks for reporting back.

-žarko
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11087
Joined: Wed Jan 03, 2018 6:52 pm

From Web Page : <a href "relative/..."> gets converted to absolute file:/// link

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com