
Quote from rcohen on June 7, 2022, 4:53 amI'm a bit confused.
Run "[PubDir]Help.pdf" "" "Normal" "" "" Works just fine.
BUT
Run "[Embedded]Help.pdf" "" "Normal" "" ""
"Can't find file"
What am I missing?
Thanks
I'm a bit confused.
Run "[PubDir]Help.pdf" "" "Normal" "" "" Works just fine.
BUT
Run "[Embedded]Help.pdf" "" "Normal" "" ""
"Can't find file"
What am I missing?
Thanks

Quote from Vadim on June 7, 2022, 6:46 am@rcohen
You probably need to first extract the file to disk and then run it.
ExtractFile command.
For example, to a folder for temporary files.
Variable [TempDir].
You probably need to first extract the file to disk and then run it.
ExtractFile command.
For example, to a folder for temporary files.
Variable [TempDir].

Quote from rcohen on June 7, 2022, 7:09 amHi @Vadim,
That's what I wound up doing, indeed. But it makes no sense in my head why a jpg would work and a PDF doesn't ;-/
Thanks
Hi @Vadim,
That's what I wound up doing, indeed. But it makes no sense in my head why a jpg would work and a PDF doesn't ;-/
Thanks

Quote from HPW on June 7, 2022, 7:14 amBut it makes no sense in my head why a jpg would work and a PDF doesn't
Hello,
Are you sure that a jpg does work this way?
When you want to use a embedded file from an external programm, then you have to extract it.
Only internal methods or plugins which can handle the internal file system can access the files directly.
Regards
Hans-Peter
But it makes no sense in my head why a jpg would work and a PDF doesn't
Hello,
Are you sure that a jpg does work this way?
When you want to use a embedded file from an external programm, then you have to extract it.
Only internal methods or plugins which can handle the internal file system can access the files directly.
Regards
Hans-Peter

Quote from Vadim on June 7, 2022, 7:16 am@rcohen
I think this is because the jpg is opened with VN tools and the PDF is opened with a third-party application.
You can try to open it like in the attached example.
This is a free application called SumatraPDF.
I think this is because the jpg is opened with VN tools and the PDF is opened with a third-party application.
You can try to open it like in the attached example.
This is a free application called SumatraPDF.
Uploaded files:

Quote from rcohen on June 7, 2022, 8:15 amHi @hpw,
From the help file:
You can use embedded files most places in your publication just as you would in a normal disk-based file. Simply replace the file's original path with the special embedded file variable. For example:
[Embedded]Sample.jpg
When referencing an embedded file, the file’s original path should be replaced with the special [Embedded] variable.
@Vadim, thanks I'll check it out. I have at this point just extracted it in the name of simplicity but I'll check your demo for next time... thanks.
Hi @hpw,
From the help file:
You can use embedded files most places in your publication just as you would in a normal disk-based file. Simply replace the file's original path with the special embedded file variable. For example:
[Embedded]Sample.jpg
When referencing an embedded file, the file’s original path should be replaced with the special [Embedded] variable.
@Vadim, thanks I'll check it out. I have at this point just extracted it in the name of simplicity but I'll check your demo for next time... thanks.

Quote from Vadim on June 7, 2022, 8:18 am@rcohen
The method I showed in the demo project allows you to open your PDF on your computer without Adobe Acrobat Reader installed. This is the purpose of this method.
The method I showed in the demo project allows you to open your PDF on your computer without Adobe Acrobat Reader installed. This is the purpose of this method.

Quote from rcohen on June 7, 2022, 8:20 am@vadim,
Understood. However these days a PDF can even be opened by the default browser ;-0 What I normally do with files directly is engage them using the RUN command and relying on the "default" software to open it... and until now this has worked... ;-o
Understood. However these days a PDF can even be opened by the default browser ;-0 What I normally do with files directly is engage them using the RUN command and relying on the "default" software to open it... and until now this has worked... ;-o

Quote from HPW on June 7, 2022, 2:16 pm>>You can use embedded files most places in your publication just as you would in a normal disk-based file.
The IN is important. The internal tools use other code to access the file than from the code for the file system.
A run COMMAND launsches a shell exec command for the file extensions and start that linked external tool.
That external tool does not know anything from the VN internal file system.
Regards
Hans-Peter
>>You can use embedded files most places in your publication just as you would in a normal disk-based file.
The IN is important. The internal tools use other code to access the file than from the code for the file system.
A run COMMAND launsches a shell exec command for the file extensions and start that linked external tool.
That external tool does not know anything from the VN internal file system.
Regards
Hans-Peter

Quote from rcohen on June 7, 2022, 5:07 pm@hpw yes, I do realize that now, thanks for the clarification. But was just showing what initially got me thinking in that direction ;-0
@hpw yes, I do realize that now, thanks for the clarification. But was just showing what initially got me thinking in that direction ;-0

Quote from noyzen on May 25, 2024, 1:05 pmQuote from Vadim on June 7, 2022, 6:46 amYou probably need to first extract the file to disk and then run it.
ExtractFile command.
For example, to a folder for temporary files.
Variable [TempDir].I had same problem and this post helped me.
I was using FileCopy Command to get Embedded files out of exe and failed...
but with ExtractFile problem fixed!
Thanks Vadim.
Quote from Vadim on June 7, 2022, 6:46 amYou probably need to first extract the file to disk and then run it.
ExtractFile command.
For example, to a folder for temporary files.
Variable [TempDir].
I had same problem and this post helped me.
I was using FileCopy Command to get Embedded files out of exe and failed...
but with ExtractFile problem fixed!
Thanks Vadim.


Quote from DaviddeArgentina on May 28, 2024, 3:53 pmHi
@rcohenCould you give me your email address so I can send you a message?
Thank you so much !
Hi
Could you give me your email address so I can send you a message?
Thank you so much !

Quote from rcohen on May 28, 2024, 11:01 pmHi David ;-)
Your reaching out to me, answers my question ;-) ;-) I know why you're contacting me and I'll take care of that right away. I wasn't sure you were still using it, and I had no way to reach you ;) It's back online ;-)
I'm at RCMedia.Services@gmail.com, should you wish to contact me anyway ;-) Actually, please DO contact me so I have your address ;-)
Thanks David.
@daviddeargentina
Hi David ;-)
Your reaching out to me, answers my question ;-) ;-) I know why you're contacting me and I'll take care of that right away. I wasn't sure you were still using it, and I had no way to reach you ;) It's back online ;-)
I'm at RCMedia.Services@gmail.com, should you wish to contact me anyway ;-) Actually, please DO contact me so I have your address ;-)
Thanks David.

Quote from DaviddeArgentina on May 28, 2024, 11:48 pmThanks a bunch @rcohen
You have no idea how useful your services are to me.
Not being able to use them created a serious problem for me.
I am glad that you quickly understood the need to communicate with me.
Anyway, I now have your new email.
Infinite thanks!
Thanks a bunch @rcohen
You have no idea how useful your services are to me.
Not being able to use them created a serious problem for me.
I am glad that you quickly understood the need to communicate with me.
Anyway, I now have your new email.
Infinite thanks!