Code to save the PDF file as an excel spreadsheet?
I have the following code - which allows me to save a file based on the value of a field:
myTrustedSaveAs = app.trustedFunction (function (doc, path)
{
app.beginPriv ();
doc.saveAs({)
cPath: path,.
bCopy: true,
bPromptToOverwrite: true
});
app.endPriv ();
});
myTrustedOpenDoc = app.trustedFunction (function (path)
{
app.beginPriv ();
app.openDoc({)
cPath: path
});
app.endPriv ();
});
I would like to be able to record both a PDF and one a worksheet based on the same path. What is the code to use to save the file as an excel spreadsheet?
I use Adobe X pro.
Reference on the Acrobat JS API for the saveAs method shows the various necessary parameters.
myTrustedSaveAs = app.trustedFunction (function (doc, path)
{
app.beginPriv ();
doc.saveAs({)
cPath: path,.
cConvID: "com.adobe.acrobat.xlsx."
bCopy: true,
bPromptToOverwrite: true
});
app.endPriv ();
});
myTrustedOpenDoc = app.trustedFunction (function (path)
{
app.beginPriv ();
app.openDoc({)
cPath: path
});
app.endPriv ();
});
You can also use the ID of the conversion of the 'com.adobe.spreadsheet '.
Tags: Acrobat
Similar Questions
-
Unable to save the PDF file to comment on
Hello
Today I wanted to save the PDF file (created by exporting from MS Word) as a Reader Extended PDF that allows you to comment on and I failed, I find myself with a message saying something like "you don't have permissions to write to a file. It's in Polish, so I'm not sure that this is a correct translation. In any case, it's something I've done for hundreds of files, in the same way. So I'm not sure what's going on? These files are not protected. I use the same account all the time.
Thanks for the tips.
Hi piotreba,
Create a new user with all the privileges on your system account & then try to reproduce the problem.
Kind regards
Nicos
-
My Photosmart HP 7520 now trys to save the PDF file instead of print it when I try to print it - it printed previously. What should I do to get it to print rather than life-saving?
Clear the PRINT TO FILE option in Acrobat or Adobe Reader. It will be somewhere in the print dialog boxes.
-
Hi This is Barry to solve corp. I already passed through a post and saw the field of locking and save as a new pdfhttps://acrobat.com/app.html#d= * jSHIzy-zFVL-QNo6KCQ1Q. But I am unable to view the scripts. By the way, I'm using 'adobe acrobat pro', here, I have only the java scripts and Im using the trial version. Can someone help me get the scripts for the locking controls and save the pdf file in the "adobe acrobat pro. Or is it difficult to use the trial version
You will need to open the file in LiveCycle Designer to be able to get to the scripts.
Paul
-
Hello. I use LiveCycel designer TO create a PDF to fill several and save the PDF files to fill static forms on-line. I use acrobat X pro to allow the extension of the detector so that users type in the data and save the form, however, the right pdf file cannot save the data entered, except the data entered in the first field. What did I miss?
Thank you
On the first field, look at the object/link tab and see what the link is set to... something .prpably like use FieldName. Now let's look at another field that is not saved and see what his relationship is set on... I bet that it is set to None. If so change it to use FieldName.
Paul
-
[locked] Allows you to save the PDF file
I noticed that using the form of Distribution via e-mail, Acrobat.com or a shared folder on the network, the user can save the PDF file, correct? I understand that correctly? Another thing, what happens if I don't want to send an email to but want to just the PDF form available on my site, the user will still be able to save a copy of the completed form for themselves, to print or to do what they want?
aljCharlie wrote:
I want to put my form on my site, and when the user fills out the form they can save at least a completed form for later printing or by e-mail, but with only the player. Is this possible?
Yes. Go to Advanced Options > enable Adobe Reader usage rights. Activate the file, re-register and then publish your site.
-
You can convert a pdf file to an excel spreadsheet?
You can convert a pdf file to an excel spreadsheet?
Hi KrisBeck,
Some third-party tools are available online to accomplish this task.
Use your favorite search engine to find this file converter.
Important: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
-
Save the pdf file as format changes to text file
Hello
When you save a pdf file as a text file in the format of the resulting text different from the original PDF file ist.
For example:
PDF-file text
X 1 X1 (missing blank)
X 1234-4567 X (new line added)
1234-4567Would it be possible that some characters see and not visible of those responsible for this behavior?
Any help will be appreciated
Concerning
JH
It depends a lot on how PDF files is created. If they are simple conversions for example Word documents, then the output text file will also be probably simple.
If after that the original text of the creation has changed, added, moved,..., then there may be hidden items in which can no longer be transformed into a similar looking text file.
-
My new Office Jet 8500 (A910-G) seems to correctly perform a scan to PDF, but the PDF file does not open, gives me the error message "the selected document cannot be opened" in PDF Complete.
I agree that it's a software because it works well with Adobe Acrobat. It's just PDF Complete (which was free with my HP computer) does not work!
-
Is there anyway to save a PDF file as an Excel workbook? I use Vista Home Premium.
I tried to copy/paste, except as - can only save as PDF file. I tried to use Adobe, but it doesn't allow me to do unless I purchase the program. I have only about 6 or 8 documents to convert, so I don't want to spend the $$ that Adobe wants. Is it possible through the window or Microsoft Office?
Hello
Check the following link to convert a PDF file to Excel file.
http://blogs.Adobe.com/acrobatforlifesciences/2009/03/converting_a_pdf_file_to_excel/
http://www.Adobe.com/products/acrobatpro/PDF-to-Word-Excel-converter.html
Also check out the following link to convert Office in PDF files.
http://www.Microsoft.com/en-US/Download/details.aspx?ID=9943
http://Office.Microsoft.com/en-us/Excel-help/save-as-PDF-HA010064992.aspx
-
Save the PDF file as the name of the field in PDF format
Hi all
I have read this thread: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript and I still cannot understand this.
I want to have a custom of the button Save to my PDF form and have it save the filename with fields in my form. The names of the fields are 'Ready', 'NameofEvent', 'EventStartmdyy '.
so for example, the PDF is filled and returned to me with its name from default pdf as "Event application form update - 1.pdf", then I get it and click on the button, then it registers as 'DarinVegasTradeshowJune152015.pdf' and records them in a file specific to each time.
I read on a reliable access and put it in a javascript in the folder or on my computer? My colleague and I'll be the only person to save these, only on the two machines.
Hope you can help.
Thank you
I tried the following:
The correct syntax, that I, based on the returned for 'this.path' debugger
/HAUCACAM0007VS/shares/Marketing_bridge/Darin/'MasterTracker/EventRequestForms/1/test.PDF
so I changed the code of this
determine the path of the directory of the active document
Directory var = this.path.substring (0, this.path.lastIndexOf('/') + 1);
for this
determine the path of the directory of the active document
Directory var = ' / HAUCACAM0007VS/actions/Marketing_bridge/Darin /' MasterTracker/EventRequestForms/1 / '.
and it worked. I swear I've tried and some variations before.
Very interesting. I can send me this PDF file, open it without saving changes, click on save and point it to my repertoire that I wanted to.
Yay! Solved!
Thank you try67!
Yet once, for the sake of people Googling how...
---------------------------
I pasted this code into a text file, saved as a javascript (.js file), in the following Program Files > Adobe > Acrobat > Javascript, I also pasted into the folder where I will save the file.
- var mySaveAs = app.trustedFunction)
- {function (oDoc, cPath, cFlName)
- Make sure the path has trailing ' / '.
- cPath = cPath.replace(/([^/])$ /, ' $1 / ');
- try {}
- app.beginPriv ();
- oDoc.saveAs (cPath + cFlName);
- app.endPriv ();
- } catch (e) {}
- App.Alert ("Error during economy-" + e);
- }
- }
- );
Then, I created a button, it adds a javascript script. the "this .getField are looking for field names in my PDF,"Ready"is a field in my PDF which bears my name of sales managers, then, it adds a space beside it (+" "+), then go to the next field I want." It saves it in order to complete the pdf, then as SalesManager EventName 1 June 2015.pdf.
- determine the path of the directory of the active document
- Directory var = ' / HAUCACAM0007VS/actions/Marketing_bridge/Darin /' MasterTracker/EventRequestForms/1 / '.
- If (typeof (mySaveAs) == 'function') {}
- mySaveAs (this, directory, this.getField("RequestedBy").value + "" + this.getField("NameofEvent").value + "" + this.getField("EventStartmdyy").value + ".pdf");
- } else {}
- App.Alert ("Missing Save function. Contact the Forms Administrator ");
- }
Hope that helps anyone looking on the other to do so, it is quite easy once you know where to save the javascripts (and what to put in it), and then change another javascript code to meet your needs.
Thank you!
-
HP 8610 saves the pdf files instead of allow to print
Hello
I have printer HP 8610 running on a desktop computer with Windows 7. I just bought and installed the printer. It seems to work irradically since I was able to print a number of things. When I open a pdf document and click on the print icon in the menu it opens the print dialog box. Everything is set to print on the 8610 and when I click on the button print is opens another dialog box asking me of "save under". I tried to save the same document on my desktop and try this place, and the same thing happens.
Any suggestions?
Hello
You will see the same while the other PDF files print then? for example, Word, Notepad, etc. ?
Which PDF reader you use?
Adobe Reader for example, click file > print, and then click the Advanced button.
Check printing as files option is not checked and click OK.
Now try to print again and check for the difference.
Please let me know the results when printing from another program, also well don't forget to specify your PDF reader if the problem persists.
Shlomi
-
Form fields will not save when employee saves the PDF file
I'm on Acrobat pro (mac osx), my colleague is on Acrobat Reader 9 (XP pc). I did a few form fields in a PDF file and saved. Whenever she changes a part of the text in the fields and tries to save it will not save the things she entered. Whenever it opens, it contains my field data for moose.
What steps should I take to make it to where she can enter their own text and save it without data loss.
In Acrobat 9, select: Advanced > extend features in Adobe Reader
-
Save the PDF file that allows...
I created several PDF files. When I open them in Adobe Reader to write in text boxes that I created it does not allow me to save what is written on the form.
How can I change there where what I write is able to be registered in order to be able to go back and finish at a later date?
Thank you.
With the document open in Acrobat, select "Advanced > extend features in Adobe Reader. But there are limits if you distrubute the form to more than 500 recipients. In short, you can use the data of not more than 500 forms that have been returned to you, including paper copies.
-
If I analyze the file and its original name is:
Ssrv395alm76439... and I want to rename it "background."
If I have the rename, the file won't save. If I leave the file as it will save and I have to go to an additional folder and rename it.
Help, it's too long. I just click on "Save as" and rename and save the document in the necessary folder at a time!
Hi Allisonchristinele ,
Please provide the exact point of the software & OS installed on your system. Also check if it is there any update available for the software after crossing "" help > check updates "»
Follow this thread to reset the Acrobat preferences:- How to reset preference settings in format Acrobat.
Like 'save' will save the changes with the file & "save under" will give the window using which can save the file to any location on the system.
I would like to know is what is happening with some or all the files.
Also, please try to check with the different user account to reproduce the problem.
Kind regards
Christian
Maybe you are looking for
-
When I try to go to print preview a web page that should pring on 1 page only, it shows that it will take 6 pages to print the web page. In page layout, I checked the therapist to adjust the width of the page box. On my laptop, s print preview the pa
-
How to collect all of your photos for the Organization
I would like to collect, for example, all my works Broderbund and then all of my Paint Shop Pro works in separate folders for ease of access and rectification
-
OK I got a usb charger for my opinion yesterday five slots and when I plugged in my opinion that it load for 5 min and I heard an explosion, but there are no lights and other things. When I took it out again it would'nt fresh. What we do with your ch
-
HP Officejet 6500 a E710 scan function does not
The HPHNDU sees the printer and test printing is successful. The HPSDU does not see the scanner. I already downloaded and reinstalled the software. Should I try again, who or what
-
Error message, unbalanced power supplies, battery switch, cisco 3750 x
Hello A new Member switch has been added. There seems to be a power supply problem as alerted in the newspapers of the switch, as shown. Journal: % PLATFORM_STACKPOWER-4-UNBALANCED_PS: electric battery switch 3A unbalanced power supplies When I watch