Hi all
You can use [pddplink] from the pddp library to open a file from the hard disk (or the as-yet unreleased [link] from ELSE). What I would like to do is open a pdf file to a specific location. According to Adobehttps://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf, you should be able to use "/path/to/file.pd#page=20". This works if I'm opening a web URL, but I can't get it to work opening a local file from the hard drive.
I said in the subject-line that it was a pdf file, but if I could get it to work with an odt or a local html document I would be just as happy. I've tried many things but I can't seem to get it to work.
Any suggestions?
On 05/06/2018 05:51 AM, Liam Goodacre wrote:
You can use [pddplink] from the pddp library to open a file from the hard disk (or the as-yet unreleased [link] from ELSE).
while i cannot help you with your specific question, i'd like to point out that the "link" object is already taken by pmpd, and should probably be avoided (it is a rather generic term as well, so i don't think it is a good name for any special purpose object).
fdesa IOhannes
2018-05-06 16:30 GMT-03:00 IOhannes m zmölnig zmoelnig@iem.at:
On 05/06/2018 05:51 AM, Liam Goodacre wrote:
You can use [pddplink] from the pddp library to open a file from the
hard disk (or the as-yet unreleased [link] from ELSE).
while i cannot help you with your specific question, i'd like to point out that the "link" object is already taken by pmpd, and should probably be avoided (it is a rather generic term as well, so i don't think it is a good name for any special purpose object).
agreed
What the object is doing is more opening any kind of file, what pddplink actually does as well, but I'm expanding the features to make it able to receive a file name and open it. This will open the file according to the software specified by the operating system, so opening a wave file calls the default software that handles wav files. The deal with urls and weblinks is that these are opened by your default browser, so it's not that it's a specific thing for weblinks at all.
So if you give it a "odt" file to open, it'll call the default software that handles it...
I don't know much about this, but if you want to open a documentation file at a specific location, I guess your best strategy is to offer a divided html documentation folder. And everyone has a default browser for opening these...
cheers
oh, and perhaps [openfile] is a more suitable name...
2018-05-06 19:48 GMT-03:00 Alexandre Torres Porres porres@gmail.com:
2018-05-06 16:30 GMT-03:00 IOhannes m zmölnig zmoelnig@iem.at:
On 05/06/2018 05:51 AM, Liam Goodacre wrote:
You can use [pddplink] from the pddp library to open a file from the
hard disk (or the as-yet unreleased [link] from ELSE).
while i cannot help you with your specific question, i'd like to point out that the "link" object is already taken by pmpd, and should probably be avoided (it is a rather generic term as well, so i don't think it is a good name for any special purpose object).
agreed
What the object is doing is more opening any kind of file, what pddplink actually does as well, but I'm expanding the features to make it able to receive a file name and open it. This will open the file according to the software specified by the operating system, so opening a wave file calls the default software that handles wav files. The deal with urls and weblinks is that these are opened by your default browser, so it's not that it's a specific thing for weblinks at all.
So if you give it a "odt" file to open, it'll call the default software that handles it...
I don't know much about this, but if you want to open a documentation file at a specific location, I guess your best strategy is to offer a divided html documentation folder. And everyone has a default browser for opening these...
cheers
It will be nicer if someone updates [pddplink] to allow "anchor" names in local urls but you can get what you want with something like this:
context/main.html
context/dummylinks/section1.html context/dummylinks/section2.html ... ...
-------------------section1.html----code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="REFRESH" content="0;url=../main.html#some-anchor">
</head><body>
</body></html>
Your [pddplink dummylinks/section1.html] redirects to main.html at your anchor.
Is rather ugly but will do what you need.
It will also work for pdf --> <meta http-equiv="REFRESH" content="0;url=../main.pdf#page=4">
Mensaje telepatico asistido por maquinas.
On 5/6/2018 12:51 AM, Liam Goodacre wrote: Hi all
You can use [pddplink] from the pddp library to open a file from the hard disk (or the as-yet unreleased [link] from ELSE). What I would like to do is open a pdf file to a specific location. According to Adobehttps://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf, you should be able to use "/path/to/file.pd#page=20". This works if I'm opening a web URL, but I can't get it to work opening a local file from the hard drive.
I said in the subject-line that it was a pdf file, but if I could get it to work with an odt or a local html document I would be just as happy. I've tried many things but I can't seem to get it to work.
Any suggestions?
Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi Lucas
I've just taken a look at your solution. It's brilliant! This is exactly what I needed. Not ugly in my eyes, since it should also help to align sections with their page numbers in a structured way.
Alex is working on his new [link] / [openfile] object, so if you have any suggestions regarding anchors, maybe you could work with him?
Thank you,
Liam ________________________________ From: Lucas Cordiviola lucarda27@hotmail.com Sent: 07 May 2018 03:44 To: Liam Goodacre; pd-list@lists.iem.at Subject: Re: [PD] open a pdf file from within PD to a specific location
It will be nicer if someone updates [pddplink] to allow "anchor" names in local urls but you can get what you want with something like this:
context/main.html
context/dummylinks/section1.html context/dummylinks/section2.html ... ...
-------------------section1.html----code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="REFRESH" content="0;url=../main.html#some-anchor">
</head><body>
</body></html>
Your [pddplink dummylinks/section1.html] redirects to main.html at your anchor.
Is rather ugly but will do what you need.
It will also work for pdf --> <meta http-equiv="REFRESH" content="0;url=../main.pdf#page=4">
Mensaje telepatico asistido por maquinas.
On 5/6/2018 12:51 AM, Liam Goodacre wrote: Hi all
You can use [pddplink] from the pddp library to open a file from the hard disk (or the as-yet unreleased [link] from ELSE). What I would like to do is open a pdf file to a specific location. According to Adobehttps://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf, you should be able to use "/path/to/file.pd#page=20". This works if I'm opening a web URL, but I can't get it to work opening a local file from the hard drive.
I said in the subject-line that it was a pdf file, but if I could get it to work with an odt or a local html document I would be just as happy. I've tried many things but I can't seem to get it to work.
Any suggestions?
Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list