How to copy a pdf and how to rename the pdf

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

How to copy a pdf and how to rename the pdf

Post by shalu » Wed Jul 01, 2015 10:03 am

How to copy a pdf and how to rename the pdf using Livecode :roll:
--
Thanks
Shalu S

mulandc@yahoo.fr
Posts: 13
Joined: Wed Feb 25, 2015 2:15 pm

Re: How to copy a pdf and how to rename the pdf

Post by mulandc@yahoo.fr » Wed Jul 01, 2015 11:51 am

try to look at this. it was posted on forum before by FireWorx. I hope it can help you
Attachments
MySplash.livecode.zip
download and look at the code
(4.5 KiB) Downloaded 226 times

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How to copy a pdf and how to rename the pdf

Post by jmburnod » Wed Jul 01, 2015 12:23 pm

H Shalu,
This script should work

Code: Select all

on RenameMyPdf
   answer file "Choose a pdf file:"
   if it = empty then exit RenameMyPdf
   put it into tPathPdfS
   set the itemdel to "/" 
   put item -1 of tPathPdfS into tNamefile
   set the itemdel to ","
   ask file "Save to :" with tNamefile -- assume name contains ".pdf"
   if it = empty then exit RenameMyPdf
   put it into tPathPdfD
   put url("binfile:" & tPathPdfS) into url("binfile:" & tPathPdfD)
end RenameMyPdf
Best regards
Jean-Marc
https://alternatic.ch

Post Reply