Coding to automatically save PDF to location
I have created an editable PDF, I have also created a button so that the person completing the form can press to submit and clears the form for the next candidate. What I also want the button to do is rather than bring up the Save as dialogue box, automatically save to a folder on the desk top. Can you help me with the coding I need to add in Livecycle to do this?
Well,
for a silent saveAs function, you will have to install a custom folder level script on each computer you wanna use the form.
You also have to ensure that the target folder is already present on those computers.
Reader won't create the folder by itself, if it doesn't exist.
Here a few threads you should read first.
http://forums.adobe.com/message/2266799#2266799
http://forums.adobe.com/message/3292113#3292113
http://forums.adobe.com/message/3393329#3393329
http://forums.adobe.com/message/3374450#3374450
Similar Messages
-
I want to automatically save to a reduced PDF size rather than having to go through File > Save As > Reduce Size PDF. Can I set something up in preferences? Thanks.
Its not the way the versions go.
Version go from version 1.3(Acrobat 4) to 1.7 (acrobat 8)
and yes depending upon what version you use it can save some bandwidth (file size) 1.7 makes the smallest most compact files plus the most up to date features are supported.
about 75% of user around the word still use 1.5 version (Acrobat 6) seem to be most compatible with the Internet. -
Hi,
I have recently update all our desktops from Adobe Reader 10 to 11.0.06.
Protected mode is disabled for al our clients. My users are complaining that functionality had changed.
They open PDF files through an oracle application. Basicly what happens is they open a PDF off a network drive.
That al goes well. However, when they click save, (NOT SAVE AS) they get a popup with the file location (which is a hidden drive) so they can see all other documents in this directory.
Is there a way to get it saved on the location where its opened from without a "save as" dialog?Many people seem to complain about the same new "feature"; it even seems to happen on local drives.
Two suggestions:
try if the same thing still happens with Reader 11.0.07
file a bug report at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform -
Hi
I have a pdf form that read the employee details from the PA tables.
Usualy the pdf form displays in preview but now i have a request to automaticaly save the file in a folder.
The user will have a screen with a button "Generate Employee Form" when the user will press this button the system will generate the from in the backround and save a pdf file in the target folder.
Is there a way to do that ?
Thankshi,
once you convert otf to pdf, do the code below
Here hard code your filepath (target folder).
w_full_path = target folder.
and then
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
tables
data_tab = T_pdf_tab
IF sy-subrc <> 0.
* * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards -
Makarand -
Hi All,
Good Morning..
Im having a problem with auto PDF saving using vb6.0.
When im trying to covert from word to pdf,the pdf is asking save as dialogue box to save the pdf document in my vb code.
I want to supress the save as dialoge box.
My convert pdf file should automatically save in given location with out asking save as dialogue.
im using vb6.0. I instllaed acrobat standard 8.0 to cinvert.
Adobe PDF is the printer name
can any one please help on this.
My Vb code:
Dim savePrinter As String
Let savePrinter = wd.Application.ActivePrinter
Let wd.Application.ActivePrinter = m_pdfPrinter
Dim tempFile As String, pdfFile As String
Let tempFile = m_pdfPrintDir + "\" + m_fso.GetBaseName(wd.Name) + ".pdf"
Let pdfFile = pdfDir + "\" + m_fso.GetBaseName(wd.Name) + ".pdf"
' wd.Application.ActivePrinter = "Acrobat Distiller"
wd.PrintOut Background:=False
Dim i As Integer
Let i = 0
While Not m_fso.FileExists(tempFile) And i < 10
Sleep 500
Let i = i + 1
Wend
Let wd.Application.ActivePrinter = savePrinter
m_fso.MoveFile tempFile, pdfFile
Thanks,
Rama KrishnaLook for 'PDF Creation APIs and Specifications > Acrobat Distiller API Reference > Windows Messaging > Disabling prompts for output file names' in the documentation of Acrobat SDK:
http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.ht m?&accessible=true -
Photoshop CS5 - Action is not running automatically while I trying to save PDF to JPG
My Problem in Photoshop CS5: Action is not running automatically while I trying to save PDF to JPG, in the batch process:
Followed following steps:
Opened PDF file
Created new auction (F2)
Flatten image
Save as JPG
Close file
To Run Batch:
Opened Batch dialogue box
Selected set/action name
Source: selected as “Folder”
Directed location using “Choose” button
And no selected any check boxes under the “Choose” button
Clicked “OK”
Now all the PDFs are opened one after another but not execute the selected action. Please help how to resolve for auto run.What is part of the Action?
Could you please post a screenshot with the pertinent Panels visible?
Have you tried using Image Processor or Image Processor Pro instead of Batch? -
I want to disable the feature that automatically saves a pdf file everytime I try to open one. I was prompted whether or not I wanted to save /repeat the task - saving/downloading - for all smilar types of files and clicked yes. I can't figur out how to turn it off
Hi willow38946771,
Could you please let me know what version of Acrobat are you using.
Where are you viewing this PDF file?
Hope to hear from you.
Regards,
Anubha -
Opening up PDF in browser window automatically saves it to temp file
Hi,
In our application, we send pdfs to a popped open browser window for the user to access.
One of the access features is a "Save" button on the pdf that will send an xfdf post of the form data back to the server. (we have the server url embedded in a form field an Acrobat JavaScript attached to a button does the "post").
This usually works fine. However, we have a few customers that complain the "Save" doesn't work.
Turns out that the "Save" doesn't work because when the pdf is first loaded, it is being saved to a temporary file on the disk (and not held in the browser memory), so the authentication cookie of the browser session is now no longer retained with the "Saved As" copy of the pdf. Thus, the pdf "Save" fails.
So the question is, why does sometimes, the pdf automatically "save as" to the temporary directory, and usually it doesn't have this problem?
We've seen this both with Acrobat Reader 8 and Acrobat Reader 9 (including the latest 9.3.).
Thoughts?
Thanks!Hi Bill and Dave,
Thanks for the thoughts.
I'm confident that this pdf is getting opened in IE (see attached screenshot from a customer).
As far as additional clues... I was banging on this on my machine (Windows 7, IE 8.0.7600.16385), and I did see it occur once.
Thanks for the thought on the browser. I'll query the problem customers about their IE version (the site only allows using IE).
When it occurred, (later it dawned on me...but not at the time), the "plug-in" that opened appeared to be Acrobat Standard window (because in hind-sight, I realized that the "Save As" button was available). The way I seemed to cause it (but cannot reproduce it now) was to change the "Documents/Save Settings/Every X minutes (to value of 1 minute)", and also the Security(Enhanced) to "Enable Enhanced Security" to "true".
note: I have both Acrobat 9 Standard, and Acrobat 9 Reader installed on this machine.
When I went an reset those values to the original, it was still "stuck" in the "saving to temporary disk" mode (great because it reproduced the problem, but then I seemed to have my machine stuck in this mode).
So I rebooted, and then the IE plug-in seems to now always run Acrobat Reader...and I had the problem no more.
I have not yet been able to get this stuck in this mode again...
Any thoughts would be appreciated!
Kind regards,
Andy -
Formscentral save as pdf file location
Not finding the PDF file location in Formscentral when "save as pdf form" is clicked.
Peter Ongley wrote:
How can I get smaller PDF's without having to shell out for Adobe Acrobat Pro?
This may not help or may degrade any images in your document, but try this: Open the PDF file in the Preview application. Invoke File -> Save As, then set "Quartz Filter" to "Reduce File Size", give the file a different name, and save the file. -
Save PDF file automatically after generation
Hello,
I have a Print only PDF Form(for a Quotation) in WebDynpro, that runs for 20-22 pages at runtime. Now it takes a lot of time(sometimes around 5-7 minutes) to generate as its dynamic form .
The user doesn't wants to wait for so long and wants that the PDF should be automatically saved upon generation and he can continue his work.
We have to do this in WebDynpro since the backend is 4.70
I know its possible to save the PDF file from WebDynpro to a filesystem. But that is possible only after generation of WebDynpro.
Is there any way to automatically save the PDF file after its generated.
Is there ny method that is executed after the PDF is generated and before displaying the same.
Is this possible as a background task, like in ABAP it can write to a SPOOL.
Any inputs, source code examples will be helpful.
Regards,
ShubhamHi Shubham,
You can use PDFObject in your code for the same.
Check 32 number tutorial for use of PDFObject in webdynpro.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro sample applications and tutorials.htm
Regards,
Bhavik -
How to generate pdf report and automatically save in the folder?
Hi all,
I want to ask, how to generate pdf report and automatically save in the folder?
Actually, if i run pdf report and show to screen. Now do not need to show to the screen but save the pdf file in the folder.
If anyone know, please share to me.
Thanks and regards,
IwanHi all,
Thanks for the reply.
when i run pdf report, and i got this URL to show the pdf report.
http://190.180.55.73:7778/reports/rwservlet/getjobid3828?server=sitcnrepsvr
Do any body know where can i get this pdf report that i have run in application server report folder ?
Thanks and regards,
Iwan -
How to save pdf file in database
Dear All,
my application is forms 6i and database is 8i,requirement is that how to save pdf file in database and users can view through formsI'll apologize up front for the length of this post. I have a few database procedures I created that write a file to a BLOB column in a table as well as retrieve the BLOB from the column after it stored there. I have successfully stored many different types of binary file to the database using these procedures - including PDF files. I have not used these procedures in a Form so I can confirm that they will work, but theoretically they should work. I'm including the code for each procedure in this posting - hence the apology for the long post! :-)
Also, since these procedures reside on the database you will need to use Forms TEXT_IO built-in package to write your file to the server before you can use these procedures to store and retrieve the file from the database.
These procedures reads and writes a binary file to a table called "LOB_TABLE." You will need to modify the procedure to write to your table.
-- Author : Craig J. Butts (CJB)
-- Name : load_file_to_blob.sql
-- : This procedure uses an Oracle Directory called "IN_FILE_LOC". If you
-- already have a directory defined in the database or would prefer to use
-- a different Directory name, make sure you modify line 21 to reflect the
-- new Directory name.
-- ==================================================================================
-- History
-- DATE WHO DESCRIPTION
-- 12/11/07 CJB Created.
CREATE OR REPLACE PROCEDURE load_file_to_blob (p_filename IN VARCHAR2) IS
out_blob BLOB;
in_file BFILE;
blob_length INTEGER;
vErrMsg VARCHAR2(2000);
BEGIN
-- set the in_file
in_file := BFILENAME('IN_FILE_LOC',p_filename);
-- Get the size of the file
dbms_lob.fileopen(in_file, dbms_lob.file_readonly);
blob_length := dbms_lob.getlength(in_file);
dbms_lob.fileclose(in_file);
-- Insert a new Record into the tabel containing the
-- filename specified in P_FILENAME and a LOB_LOCATOR.
-- Return the LOB_LOCATOR and assign it to out_blob.
INSERT INTO lob_table (filename, blobdata)
VALUES (p_filename, EMPTY_BLOB())
RETURNING blobdata INTO out_blob;
-- Load the file into the database as a blob.
dbms_lob.open(in_file, dbms_lob.lob_readonly);
dbms_lob.open(out_blob, dbms_lob.lob_readwrite);
dbms_lob.loadfromfile(out_blob, in_file, blob_length);
-- Close handles to blob and file
dbms_lob.close(out_blob);
dbms_lob.close(in_file);
commit;
-- Confirm insert by querying the database
-- for Lob Length information and output results
blob_length := 0;
BEGIN
SELECT dbms_lob.getlength(blobdata) into blob_length
FROM lob_table
WHERE filename = p_filename;
EXCEPTION WHEN OTHERS THEN
vErrMsg := 'No data Found';
END;
vErrMsg := 'Successfully inserted BLOB '''||p_filename||''' of size '||blob_length||' bytes.';
dbms_output.put_line(vErrMsg);
END;
-- Author : Craig J. Butts (CJB)
-- Name : write_blob_to_file.sql
-- Descrip : This procedure takes a BLOB object from a database table and writes it
-- to the file system
-- ==================================================================================
-- History
-- DATE WHO DESCRIPTION
-- 12/11/07 CJB Created.
CREATE OR REPLACE PROCEDURE write_blob_to_file ( p_filename IN VARCHAR2 ) IS
v_blob BLOB;
blob_length INTEGER;
out_file UTL_FILE.FILE_TYPE;
v_buffer RAW(32767);
chunk_size BINARY_INTEGER := 32767;
blob_position INTEGER := 1;
vErrMsg VARCHAR2(2000);
BEGIN
-- Retrieve the BLOB for reading
BEGIN
SELECT blobdata
INTO v_blob
FROM lob_table
WHERE filename = p_filename;
EXCEPTION WHEN OTHERS THEN
vErrMsg := 'No data found';
END;
-- Retrieve the SIZE of the BLOB
blob_length := DBMS_LOB.GETLENGTH(v_blob);
-- Open a handle to the location where you are going to write the blob
-- Note: The 'WB' parameter means "Write in Byte Mode" and is only
-- available in the UTL_FILE pkg with Oracle 10g or later.
-- USE 'W' instead for pre Oracle 10q databases.
out_file := UTL_FILE.FOPEN('OUT_FILE_LOC',p_filename, 'wb', chunk_size);
-- Write the BLOB to the file in chunks
WHILE blob_position <= blob_length LOOP
IF ( ( blob_position + chunk_size - 1 ) > blob_length ) THEN
chunk_size := blob_length - blob_position + 1;
END IF;
dbms_lob.read(v_blob, chunk_size, blob_position, v_buffer );
UTL_FILE.put_raw ( out_file, v_buffer, TRUE);
blob_position := blob_position + chunk_size;
END LOOP;
END;Hope this helps.
Craig...
-- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks! -
Unable to save PDF's that have editable fields
I am unable to save forms that have editable fields. I get the error "The document could not be saved. The disk you were saving to or the disk used for temporary files is full. Free some space on this disk and try again, or save to a different disk"
I am running windows xp, and started with reader 10.1.4 having this issue, now i upgraded to 11 and same results. My co workers can save the same form and i have over 80 gb of free space on my hard drive which is where i am saving it to. I have tried saving it to other locations on my hard drive but get the same message. I can however save pdf files that have no fillable forms in them just fine.
I could really use some help.
ThanksFigured out prtected mode was set to enabled on startup. Turned that off and no more problems.
-
Save pdf to folder in JPEG / save aperture book to JPEG
Hello guys,
basically I want to save my created photo book in Aperture in the best possible quality.
I have read the FAQ on apertureexpert.com about "save pdf to folder in JPEG" and have also downloaded the script that was posted their but it did not work as expected.
http://www.apertureexpert.com/forum-user/post/1306850
The problem is that I can't really change any settings about the script (like change dpi to 300 like in the video below). Opening it in Automator does not bring the hoped features.
Basically I want to do exactly what is done in this video:
http://www.youtube.com/watch?v=VJ7ywI5N9o8
I might want to export the photos in TIFF too one day!
I am desperately trying to export my photo book in the best possible quality! I have spend the whole day trying to solve this problem without finding anything on google!
Would there be any possibilities to just download the complete "Save pdf to folder in TIFF" and "Save pdf to folder in JPEG" script somewhere? That would would be the optimal solution, a download link or simply an upload from someone how as the scripts that originally ware pre-installed on a mac. You can check if you have these under "Macintosh HD/Library/Pdf Services".
Thanks a lot for your help! I would really appreciate it!
Best,
GordonIt actually goes thru the motions and appears to be working, but ultimately the pages are not actually created or saved anywhere. I have tried over and over, numerous things, but in the end there are no actual pages created... its weird. I specify exactly where to save the pages, and when its done, there is nothing there....
Also, when I run the Play button on the "Save PDF to folder as JPEG" in automator, it encounters an error at the "Move Finder Items", the step where it would actually place or save the JPEGs to that location.... I can not seem to figure out what went wrong, as it did work before and I don't know what I could have done to cause an error... -
Adobe Reader X/10 - continued crash problems trying to save PDFs
Dear all,
I wonder if anyone can help me.... I have been having ongoing problems when trying to save PDF documents online while using the downloaded Adobe Reader 10 or X version. It always crashes/freezers when I press the 'save' button in the 'save as' dialogue box. I have to use end program and start all over again.
I use Windows XP (Professional, Service Pack 3) and both Mozilla Firefox 4.0.1 and IE 8 web browsers. I have followed the links suggested to prevent in future after the problem has been reported - I have unstalled and reinstalled Reader a few times now, as well as checked that I have been using the most up to date version of Reader 10 or X. Then reopened everything again thinking it's solved and then crash (ARGH!). Has anyone else had similar issues?
This is most frustrating to say the least, not withstanding the time delays affecting work outputs when the system crashes on the 'save as' dialogue box (after pressing save). I have lost faith in Adobe now ... I used to consider the free download of Reader a great asset, now it is a true annoyance and may or may not work entirely.
Any help or advice would be great, even alternative PDF software.
Many thanks in advance
RuthThe response from 370H55V is correct in theory and in actual fact was very close to the solution, but the response was more cryptic than helpful. I first encountered this yesterday after upgrading users on a Terminal Server from Reader v8 to v9. My first instinct was to upgrade to v10, which I did, but the problem still existed, so I rolled back to v8 and the issue was resolved. Unfortunately however this was not a solution and it was a requirement that we upgraded to at least v9. The error was as described that in IE 8 when a PDF file was opened inside the browser(or embedded as some might say), and you press SAVE (or even sometimes print) within the adobe reader toolbar, IE would flicker and crash on the page and then recover the page, saying this page has been recovered, but no saving would happen. This would happen if protection was turned off in Adobe Reader, and if it was on (default), then pressing SAVE would just make IE freeze as previously reported.
So to understand what was happening, I ran FILEMON and REGMON by SYSINTERNALS. Regmon showed nothing of significance. Filemon showed a lot more. It was getting an access denied error on c:\windows\system32\shell32.dll. There was no reason for this however because the permissions on this file allow all users to read and execute. But then I remembered what shell32.dll does. It brings up the SAVE AS dialog box that allows you select the path of where to save the file – essentially this is calling the shell of explorer.exe.
So this is actually the cause of the crash. When Adobe Reader makes the call to the SAVE AS dialog box – CRASH!!!!! Why???
Well it’s quite simple. The default location that the SAVE AS dialog box starts in is MY Documents and this is where to start looking for the source of the error. To find out were “my documents” is for your session, open REGEDIT and go to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Look for the key: PERSONAL and in it is a REG_SZ containing the path to “my documents” for the current user. This is generally something like C:\documents and settings\<username>\My Documents on Windows XP/2003 and something like C:\Users\<username>\Documents on Win7/ 2008.
Now in our case the setting for this key was U:\ which was a mapped network drive to the path: \\server\username\mydocs. U:\ did exist and the user had full permission to it. So I changed the path on the personal key to C:\documents and settings\<username>\My Documents – the default setting. I went back to IE, opened a PDF document from a website, viewed the file and then pressed SAVE on the adobe toolbar. BINGO BABY!!!! Worked perfectly.
But again this was not a solution because in a network, you need your users to have their “my documents” in their own home drive, which is generally located on a remote share on a server. So I put the PERSONAL setting in the registry back to U:\ and crash back to square one. I then put the path of the U:\ in the key instead of just U: drive, so PERSONAL now had a REG_SZ value of \\server\username\mydocs. Went out to IE again, launched a PDF, pressed SAVE. BINGO BABY!! It worked. So clearly this was a UNC Path resolution issue or something similar, but why did it only happen from v9 of Adobe Reader and whose fault is it – Microsoft or Adobe. Well I suspect both. I suspect that Adobe maybe making a weak Shell call in their code which doesn’t resolve the path properly, and a possible bug in the MS Shell call may be adding to this issue.
Anyway, I did some further testing for some fun. I took permissions away from the user to their “My documents” folder and was also able to replicate the same crash. I set the PERSONAL registry key to a folder that didn’t exist and same crash. So basically if the SAVE AS shell call can’t resolve or access the path as set in the PERSONAL key the you will get this crash.
The way I solved it for the network users, was to set the registry key for PERSONAL to \\server\username\mydocs via Group Policy, also a logon script may also work. Additionally you could use Folder Redirection in Group Policy to set the path for MY Documents on a per user basis. This also was tested and work.
For non-network users check the PERSONAL key and get the path and then find that path and check permissions etc. Replace it with the default location or even point it to a path that you know exists and has full access.
As a final tip, also look at the registry Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
And find the PERSONAL path. It will be something like %USERPROFILE%\my documents in XP/2003 and %USERPROFILE%\Documents in Win7/2008. This is the default location and if the PERSONAL KEY does not exist in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders then windows reverts back to the User Shell Folders key to get the path. It is a good idea to check that path in this area as well.
Hope this helps.
Maybe you are looking for
-
How to get UserId by WD from different EP server
Hey guys: I deploy my WD application to EP1, and I need to use WD iview to show the same application on the other server, EP2. Everything goes fine on EP1, but the web dynpro iview on EP2 cannot get UserID. Is there any solution to get
-
Grab files print at Bottom of Page
I don't remember Grab>Capture>Selection printing at the bottom of a page before. Any way to change it to print at the top of the page.
-
Can anybody please tell me what is escapse sign ( check box) external data
Hi , Can anybody please tell me , What is Escape Sign (check Box) in external data tab in infopackage Thanks PP
-
Is there a app. That I can download that's comparable to adobe flash player
Is there a app. That I can download that's comparable to adobe flash player
-
I know ZIP about Java. Where Do I Learn?
I know virtually nothing about Java. I have avoided it but now I want to learn and so far everything I have seen is pretty much Greek. I have used FP2003 and Dreamweaver to build web pages but not delved ino the guts of Java. Where do I begin? Ionami