Acrobat 9.0 Standard. Setting PDF file password from Excel VBA
Acrobat 9.0 Standard. Setting PDF file password from Excel VBA
Hi: I am trying to find a call to set the password of a PDF file that I am creating from Excel Workbook using a VBA call.
I basically have this Excel VBA code that works fine and creates a file.
pBook.PrintOut Copies:=1, preview:=False, ActivePrinter:="Adobe PDF", _
PrintToFile:=True, collate:=True, PrToFileName:=PSFileName
' Convert the postscript file to .pdf
Dim myPDF As PdfDistiller
Set myPDF = New PdfDistiller
myPDF.FileToPDF PSFileName, "", ""
BUT, I need to set the password on this PDF file and do not see an option to do so.
Can you provide a solution for this situation? Appreciate your response in advance.
Thanks.
There is no way to set password programmatically using any other dll or any other kit?
I am creating a bunch of PDF files for users programmatically but then they have to go in and set password themselves? This is very inconvenient for users.
Similar Messages
-
Acrobat Reader can't open PDF file downloaded from the internet
I downloaded the following pdf file from the internet and saved it to the desktop. When I tried to open the file I got a message saying Acrobat couldn't open it. I do not have trouble opening other PDF files. There is something about opening certain PDF files from the internet that is causing this. Is there a setting in the PDF preferences that is causing this or some security setting.
http://www.porteverglades.net/include/content/docs/media/Port-map-2009.pdfIt seems that Safari is unable to export the document as a PDF because the exported file was zero bytes. That's why I couldn't open it. I tried Firefox and did a File>Save. It saved the file as a PDF which I was able to open. So proglem solved.
-
Why Acrobat Reader doesn't open pdf-files from Safari?
I'm new Mac user and cannot find answer why I cannot open pdf-files directly from Safari. My Macbook OS X 10.9.3 and Safari is 7.0.4. Only way to open pdf-files is to download the content first and then open it. If I try to open it directly Acrobat says "Before proceeding you must first launch Adobe Acrobat and accept the end user license agreement". I have downloaded Acrobat Reader several times already and cannot understand what I'm doing wrong.
Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
Step 1
If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
Step 2
There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
Step 3
If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
Safari ▹ Preferences... ▹ Security
and check the box marked
Allow Plug-ins
Then click
Manage Website Settings...
and make any required changes to the security settings for the Adobe PDF plugin.
Step 4
Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
Step 5
The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
Step 6
Do as in Step 4 with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari. -
How do I download a free version of Adobe Acrobat in order to edit pdf files?
How do I download a free version of Adobe Acrobat in order to edit pdf files?
You can download a 30 day trial for Windows at https://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&loc=en.
-
Acrobat X pro - Problem viewing PDF files in web browser
I've recently upgraded to the latest Imac and have experianced one or two teething problems with software compatibility with OS X 10.7.1 Lion (most now resolved)
My latest issue is viewing online PDF's which appear in my browser as just a blank black page. This happens in both Safari and Firefox (both latest versions)
My question is: Does anyone have any ideas on how to solve this?I was able install and view the files in adobe reader 10.1.1 and in web browser window 7 64 bit machine. But when I go to Edit-preferences-internet and unchecking "display PDF in Browser" , I am not able to view the pdf files in ie 9 browser. I have used this javscript to check for pdf version.
Immediately after installing adobe--
when I do adobe test in ie 9---https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html-- launches a test pdf file--Acro_Test.pdf
After unchecking-- it stays in the https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf
Tried to go back to "display PDF in Browser"--it is showing it is checked(eventhough I did not check it)
and in ie
it stays in the https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf -
Which version of Adobe Acrobat is needed to read .pdf files on the iPhone?
I have Blackbaud's iBBDemo4.exe iPhone simulator for Windows XP. I'm trying to view/read various .pdf files with it. I received an error message that says, "file uses a new format that is not supported by the current version of Acrobat." Does anyone know which Acrobat version is needed for .pdf files on the iPhone and/or iPhone simualtor?
The iPhone has it's own built in PDF reader, and doesn't need Adobe Reader. So if your simulator software isn't working then I suggest you contact Blackbaud's support. Besides, Adobe doesn't make an iPhone version of Reader.
-
Why won't pdf files print from Safari?
why won't pdf files print from Safari? I get blank pages. They print fine from Firefox. OS X 10.8.4
Back up all data.
If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
Triple-click the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
How do I link to Anchor Text from browser to PDF file exported from InDesign?
I see that this question was asked previously but not answered:
http://forums.adobe.com/message/3737541
I need a way to link to topics (from an HTML page) within a structured PDF file generated from InDesign, i.e. one that has an interactive bookmarks
panel, that doesn't break the links when the file is updated.
In particular, I don't want to refer to:
* page numbers because the document will repaginate when it is updated, breaking existing links
* named destinations that are numeric as addition/deletion of topics renumbers the named destinations, breaking the links.
Is there any option in InDesign that creates named destinations derived from bookmark titles as that would seem to solve my problem?
I have a similar need, but I have not been able to find an answer anywhere online, even after a several hours of research.
I am on contract with General Electric to develop a UI Style Guide for an international team of developers. My client wants to be able to distribute the Style Guide as a PDF document, but needs to provide links to specific topics when submitting a "Story" in an Agile development environment to the programmers.
Ideally, I would like to be able to create "named destinations" in InDesign such that I can provide the client with a list of URLs similar to this format:
file:\\StyleGuide\Test1-20131024a.pdf\#nameddest=AnchorText-01
However, I can not figure out how to create "named destinations" in the PDF file from the InDesign file in which I have created the Anchor Text in the Hyperlinks tab.
Alternately, the client would be satisfied with the ability to link to specific bookmarks in the exported PDF file that have been derived from the configuration of the Table of Contents styles, but my research has led me to believe that it is not possible to hyperlink from a browser window to a bookmark in a PDF file (only to specific page numbers, search word lists, named destinations, and comments) as described here: http://blogs.adobe.com/tcs/2011/01/tcs-specific/linking-to-a-page-within-a-pdf-and-more.ht ml
Having been using InDesign since 1988, when it was PageMaker, I would prefer to use it to provide GE with the most attractive deliverable, but they are now leaning heavily toward having me licensed with Madcap Flare, which has this capability built in:
http://webhelp.madcapsoftware.com/flare9/Default.htm#Nav_Links/Named_Destinations/Creating _Named_Destinations.htm
Please help me to find a solution that will allow me to continue using InDesign for this project.
Thank you!
Lynne O’Connor
Technical Writer (contractor)
GE Oil & Gas - Measurement & ControlFollow-up post (solution is not available):
I have just completed a phone call with Gaurev Sethi of Adobe escalated technical support in which I shared my screen to explain and demonstrate the desire to link from an external URL to a specific location within a PDF file that has been exported from InDesign. After 40 minutes, during which I was placed on hold a few times while he consulted with his team, it was determined that the desired functionality is not supported in InDesign and has been identified as a limitation of the software.
In researching alternate documentation software that supports PDF export, I discovered that Madcap Software supports this functionality in its Flare product:
http://webhelp.madcapsoftware.com/flare9/Default.htm#Nav_Links/Named_Destinations/Creating _Named_Destinations.htm
Note that linking via URL to a bookmarked location within a PDF is not supported:
http://blogs.adobe.com/tcs/2011/01/tcs-specific/linking-to-a-page-within-a-pdf-and-more.ht ml
More about parameters that can be specified to open PDF files are available here:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
Although the above link is for a previous version of Acrobat, I could find no evidence to the contrary in the current SDK documentation.
-Lynne -
Error while opening PDF file downloaded from database Blob column
Hi All,
I am working on jdev 11.1.1.4.0.
In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
Thanks
KanikaThanks a lot Timo...!!!
I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
Here is the code snippet ..
byte[] buff;
buff = new byte[(int)length]; -- Length is the file size
int bytesRead = is.read(buff);
for (int i = 0; bytesRead < buff.length; i++) {
// int b = is.read();
int b = is.read();
if (b == -1)
break;
buff[i] = (byte)b;
BlobDomain blobDomian = new BlobDomain((buff));
TestVORow = (TestVORow Impl)TestVO.createRow();
if(blobDomian != null) {
TestVORow.setAttachment(blobDomian);
am.getTransaction().commit();
This seems to be Ok to me..the same issue, file is still corrupting.
Any thoughts from your side ???
Thanks
Kanika
The problem is resolved.
Changes made are instead of
InputStream is;
used ... BufferedInputStream bis ;
and after
for (int i = 0; bytesRead < buff.length; i++) {
// int b = bis.read();
int b = bis.read();
if (b == -1)
break;
buff[i] = (byte)b;
bis.close(); // use this close bufferedInput Stream.
Able to open each and every file now..Thanks for your suggestions Timo and Frank.
Edited by: Kanika on Mar 6, 2012 3:15 AM -
Have bought service below to convert pdf files into word excel, Have followed instructions but cannot convert file. Please help.
AD003225761BR Produtos pedidos: Qtd. produto 1 Adobe ExportPDF, Annual (Outro,Todos os idiomas disponíveis) My email: [email protected]Hi Jwalter,
Thank you for posting on the Adobe forums,Please let us know what is the exact issue.
Also, if you want help on how to use the service, kindly try the link below.
Adobe ExportPDF FAQ
http://tv.adobe.com/watch/insights-on-acrobat-solutions/introduction-to-adobe-exportpdf/
Thanks,
Vikrantt Singh -
How do I get a print to pdf file option from Word and PP?
I have windows vista. How do I get a print to pdf file option from Word and PP?
Do you own Acrobat? If so what version? If not what version of Word and PP do you have? Newer versions contain non-Adobe software for creating pdfs. If you do not own Acrobat that it would be best to check in a Microsoft forum on how to use Word to create pdfs.
-
Converting a Adobe Reader 9 PDF file to an Excel Spreadsheet
I want to convert an Adobe Reader 9 PDF file to an Excel spreadsheet. How do I do this?
Use Adobe Acrobat.
Or use ExportPDF.
Or use any of the free tools that can be found on the Internet. -
How to print PDF file content from ABAP in background?
Hi,
Is it possible to print PDF file content from ABAP in background?
I have some PDF content which I need to print it, these PDF files are generated outside the SAP.
Please have you any suggestions?
Thank you
Tomas<b><u>Solution:</u></b><br>
<br>
The target output device must support PDF print, this is only one limitation.<br>
<br>
REPORT z_print_pdf.
TYPE-POOLS: abap, srmgs.
PARAMETERS: p_prnds LIKE tsp01-rqdest OBLIGATORY DEFAULT 'LOCL',
p_fname TYPE file_table-filename OBLIGATORY LOWER CASE,
p_ncopi TYPE rspocopies OBLIGATORY DEFAULT '1',
p_immed AS CHECKBOX.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
DATA: lv_rc TYPE i,
lv_filter TYPE string.
DATA: lt_files TYPE filetable.
FIELD-SYMBOLS: <fs_file> LIKE LINE OF lt_files.
CONCATENATE 'PDF (*.pdf)|*.pdf|' cl_gui_frontend_services=>filetype_all INTO lv_filter.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
file_filter = lv_filter
CHANGING
file_table = lt_files
rc = lv_rc
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0 AND lv_rc EQ 0.
MESSAGE 'Error' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
READ TABLE lt_files ASSIGNING <fs_file> INDEX 1.
IF sy-subrc EQ 0.
p_fname = <fs_file>-filename.
ENDIF.
AT SELECTION-SCREEN.
DATA: lv_name TYPE string,
lv_result TYPE boolean.
lv_name = p_fname.
CALL METHOD cl_gui_frontend_services=>file_exist
EXPORTING
file = lv_name
RECEIVING
result = lv_result
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
IF lv_result NE abap_true.
MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
START-OF-SELECTION.
END-OF-SELECTION.
PERFORM process.
FORM process.
DATA: lv_name TYPE string,
lv_size TYPE i,
lv_data TYPE xstring,
lv_retcode TYPE i.
DATA: lt_file TYPE srmgs_bin_content.
lv_name = p_fname.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = lv_name
filetype = 'BIN'
IMPORTING
filelength = lv_size
CHANGING
data_tab = lt_file
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE 'Read file error!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_size
IMPORTING
buffer = lv_data
TABLES
binary_tab = lt_file
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE 'Binary conversion error!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
PERFORM print USING p_prnds lv_data CHANGING lv_retcode.
IF lv_retcode EQ 0.
WRITE: / 'Print OK' COLOR COL_POSITIVE.
ELSE.
WRITE: / 'Print ERROR' COLOR COL_NEGATIVE.
ENDIF.
ENDFORM. " PROCESS
FORM print USING iv_prndst TYPE rspopname
iv_content TYPE xstring
CHANGING ev_retcode TYPE i.
DATA: lv_handle TYPE sy-tabix,
lv_spoolid TYPE rspoid,
lv_partname TYPE adspart,
lv_globaldir TYPE text1024,
lv_dstfile TYPE text1024,
lv_filesize TYPE i,
lv_pages TYPE i.
CLEAR: ev_retcode.
CALL FUNCTION 'ADS_SR_OPEN'
EXPORTING
dest = iv_prndst
doctype = 'ADSP'
copies = p_ncopi
immediate_print = p_immed
auto_delete = 'X'
IMPORTING
handle = lv_handle
spoolid = lv_spoolid
partname = lv_partname
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ADS_GET_PATH'
IMPORTING
ads_path = lv_globaldir.
CONCATENATE lv_globaldir '/' lv_partname '.pdf' INTO lv_dstfile.
OPEN DATASET lv_dstfile FOR OUTPUT IN BINARY MODE.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
TRANSFER iv_content TO lv_dstfile.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CLOSE DATASET lv_dstfile.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ZBAP_RM_PDF_GET_PAGES'
EXPORTING
iv_content = iv_content
IMPORTING
ev_pages = lv_pages.
lv_filesize = XSTRLEN( iv_content ).
CALL FUNCTION 'ADS_SR_CONFIRM'
EXPORTING
handle = lv_handle
partname = lv_partname
size = lv_filesize
pages = lv_pages
no_pdf = ' '
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ADS_SR_CLOSE'
EXPORTING
handle = lv_handle
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
ENDFORM. " PRINT -
I'm using iphone 4S and ipad mini, and I can not open PDF file only from my husband email that using Mic outlook. It was very weird because I can received other email with pdf file from other people. Can someone help...
Thanks in advanceHi Eidda,
This may because the attachment is a winmail.dat file. I would recommend taking a look at the article below for more information. Note: the article is written for OS X mail, but does also apply to this situation.
Mac OS X Mail: What is a winmail.dat attachment?
http://support.apple.com/kb/HT2614
-Griff W. -
How do i conver a pdf file to a excel file
how do i convert an pdf file to a excel file
Hi Jerry,
Welcome to PDF Pack!
Here's some information I believe should help you!
How to use PDF Pack
Let me know if you have further questions.
Kind regards, Stacy
Maybe you are looking for
-
Unable to set up my Time capsule as router and wifi base station
I am new to the mac world and purchased a time capsule to act as my router and wifi base station. I asked when i purchased the TC if i needed anything other than the adsl filter i have for broadband and was told no. However I cannot get the TC to tal
-
I just downloaded mountain lion and now my google chrome and spotify wont open
I just downloaded mountain lion and now my google chrome and spotify wont open. Any help would be appreciated.
-
I would like to have an iso file that does not have the "press any key to boot from cd/dvd" prompt. I know how to do this manually but I would like to be able to set this somewhere so that MDT will use it whenever the iso is updated. Is there a scrip
-
Tracking Number for Inbound Deliveries
We are trying to get ASNs from our suppliers for their shipments. We would like to capture the carrier tracking number (e.g. the Fedex number) from the supplier. I'm using segment E1EDL47-TRACKN in the DELVRY03.DESADV idoc. I'm not able to get the tr
-
Need procedure for the function
Hi Can any one create a procedure for the following Following is a function i need a procedure which basically Converts the values in the a Column to no of rows Example : Column Name: USA; Canada; Japan; in to 3 rows : USA Canada Japan create or repl