How do you programmatically "enable for commenting"?
I have seen a million forum posts where people want to programmatically enable their pdfs for commenting, and the answer is: use LiveCycle. We are considering buying LiveCycle for our server JUST for this purpose, since there doesn't seem to be any other way to do it. Before we do, I want to know how it would work. Since I don't have livecylce, I can't very well poke around and figure it out, and I don't see any free trial downloads. Can anyone explain how you would go about this task? On the other hand, isn't the pdf an open document standard? Is there any way to modify the pdf "under the hood" to enable it for commenting, without using the Acrobat menu item?
TO programmatically apply uage rights to a PDF document, see the topic named Applying Usage Rights to PDF Documents located at the following URL:
http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000411.html
This will explain what to do and will lead you to the following Java code example:
* This Java Quick Start uses the following JAR files
* 1. adobe-reader-extensions-client.jar
* 2. adobe-livecycle-client.jar
* 3. adobe-usermanager-client.jar
* 4. adobe-utilities.jar
* 5. jbossall-client.jar (use a different JAR file if LiveCycle ES is not deployed
* on JBoss)
* These JAR files are located in the following path:
* <install directory>/Adobe/LiveCycle8/LiveCycle_ES_SDK/client-libs
* For complete details about the location of these JAR files,
* see "Including LiveCycle ES library files" in Programming
* with LiveCycle ES
import com.adobe.livecycle.readerextensions.client.*;
import java.util.*;
import java.io.File;
import java.io.FileInputStream;
import com.adobe.idp.Document;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
public class ApplyUsageRights{
public static void main(String[] args) {
try{
//Set connection properties required to invoke LiveCycle ES
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
//Create a ReaderExtensionsServiceClient object
ReaderExtensionsServiceClient reClient = new ReaderExtensionsServiceClient(myFactory);
//Retrieve the PDF document to which to apply usage rights
FileInputStream fileInputStream = new FileInputStream("C:\\Adobe\\Loan.pdf");
Document inputPDF = new Document(fileInputStream);
//Create a UsageRight object and specify specific usage rights
UsageRights useRight = new UsageRights();
useRight.setEnabledDynamicFormFields(true);
useRight.setEnabledComments(true);
useRight.setEnabledFormFillIn(true);
useRight.setEnabledDigitalSignatures(true);
//Create a ReaderExtensionsOptions object
ReaderExtensionsOptionSpec reOptions = new ReaderExtensionsOptionSpec();
//Set the usage rights
reOptions.setUsageRights(useRight);
reOptions.setMessage("This is a Rights-Enabled PDF Document");
//Apply usage rights to a PDF document
Document rightsEnabledPDF = reClient.applyUsageRights(
inputPDF,
"RE2",
null,
reOptions);
//Create a new PDF file that represents the rights-enabled PDF document
File resultFile = new File("C:\\Adobe\\Critique5.pdf");
rightsEnabledPDF.copyToFile(resultFile);
}catch (Exception e) {
e.printStackTrace();
Similar Messages
-
Enable for commenting in Adobe Reader
Hi
How can I implement "Enable for commenting in Adobe Reader option" in Adobe professional using Acrobat JavaScript? Is it possible?
Please suggest me.
Regards
KumarNot possible.
-
"Enable for Commenting and Analysis in Adobe Reader
Hi all,
Adobe Acrobat Pro Extended has a feature to enable measurements and comments in a file when that file is then subsequently opened in Reader.
It is in Acrobat Pro Extended under Comments -> Enable for Commenting and Analysis in Adobe Reader
My question is, if I convert large batches of files to PDF, how can I enable measurements and comments for Adobe Reader without opening each file and selecting that option from Adobe Acrobat Pro Extended?
Thanks for any info,
Jesse PerryTry the Batch Process feature in Acrobat Pro Extended. You'll still have to do it after the files are converted, but it may keep you from having to set that feature one PDF at a time. Go to Advanced > Document Processing > Batch Processing...
This 'might' be able to do what you need. -
Hi,
How to enable for commenting in PDF through Acrobat JavaScript? Is it possible?
Kindly advice me.
Regards
KumarHow many times do you need to hear it's not possible before you believe it?
-
How do we programmatically "enable" the Page to have
Some body known how do we programmatically "enable" the Page to have
Item level security. - analogous to checking the box in the Page edit mode for "Enable item level security"
J.Try this. It might work for you.
declare
l_page portal.wwsbr_api.page_record;
begin
select * into l_page
from portal.wwv_user_owned_corners
where siteid = <page group id>
and id =<page id>;
-- 0 is disabled . 1 is enabled.
l_page.haveitemsecurity := 1;
portal.wwsbr_api.modify_folder(
p_page => l_page
wwpro_api_invalidation.execute_cache_invalidation;
commit;
end;
regards
Suresh. -
Batch file enable for commenting and analysis in Adobe Reader
I have over 18000 GeoPDFs created and want to enable for commenting and analysis in Adobe Reader. Can anyone step me through how to set this up in Adobe LiveCycle?
To enable the Commenting in Adobe Reader you can either use Acrobat or LiveCycle Reader Extentions.
But, in Acrobat (even in Acrobat X) you cannot enable those Usage Rights via batch.
This means you will have to do this for each file separately.
Attention: The commenting will only be enabled for static forms (PDF-forms), not for dynamic forms (XFA-forms)!
Possible the LiveCycle Reader Extentions can do that, but this product is very, very expensive and I don't have it. -
Can't reliably create a PDF enabled for commenting in Reader
I've hit a brick wall trying to find out why my Acrobat Pro 7.0.8 is broken. As of yesterday, I cannot reliably create a PDF that is enabled for commenting in Reader. I get an error message: "You do not have permission to write to this file." However, this message is halfway false Acrobat does indeed create a PDF where I tell it to. It's just not a reviewable file, which you can tell when you re-open it and see the special dialog box that first pops in front of you, and there's a key/starburst icon in the lower left corner of the Acrobat window. So the resulting output file isn't really enabled, and I've made no progress.
All I know is that before May 1st, this Acrobat Pro feature worked flawlessly every time I used it.
I tested my own file on two other co-workers' PCs and they also cannot save my file as enabled for commenting. One of them has Acro. Pro 7.0.5 and the other one has Pro 7.0.9. Nor can they save other PDF files as enabled for commenting. But creating a short (one-line) PDF from Word or WordPad DOES work, and I can save that file as enabled for commenting.
I tested a few of my existing PDFs: some of them can be output to the reviewable format without any problem, but some of the more recent ones I can't especially if they're larger. Even a Word file as small as 9 pages will not convert. I tried both printing it to the Adobe PDF printer as well as using PDFMaker. Neither one works on this file. But I was able to create reviewable PDFs from simple Word files and some older (April 2008 or earlier) Word files that were longer.
I think some incompatibility happened because of the Windows updates that get silently shoved to our PCs every Tuesday (I work for a large company). But I could be wrong to blame Microsoft.
Would the new Acrobat Pro 7.1.0 update fix this problem?
http://www.adobe.com/support/downloads/detail.jsp?ftpID=3948
My system: Windows XP, Svc. Pack 2, Word 2003.After I removed the comma in the filenames of my problematic test files, this solution worked for me, too. I was able to again save the PDFs as enabled for commenting in Adobe Reader (to make them reviewable).
Thank you, thank you!
This definitely looks like a bug to me, because a comma IS allowed in filenames in both the PC Windows and Mac OS X operating systems.
Andrea -
Enable for commenting in Reader -- Inconsistent behavior?
Many similar threads on the forum, but my problem seems different. I've built a portfolio in Acrobat Pro 9, containing multiple folders -- each with multiple files. I want to enable all the files (mostly pdf's) for commenting in Reader (urging clients to upgrade to Reader 9). The portfolio will have password security allowing printing, commenting, forms, and existing signatures.
With security off in Acrobat Pro, I opened each folder, selected all files as a group, and enabled for comments under the comment menu. (Although that menu item is followed by an ellipsis ...., no dialog box followed.) Still in Acrobat, I confirmed that the Comment and Markup Tools were available for each file. I then reset to Password Security under Portfolio Properties, with permissions as noted above, including commenting. Immediately after this, I saved the portfolio, and the title bar changed to SECURED as expected. Still in Acrobat Pro, I checked all the files in all the folders, and the markup tools remained available (except with jpg files, as I think is expected).
When I open the document in Reader 9, only the first file in each folder has the Comment and Markup Tools menu option available. I repeated the process described in the previous paragraph, this time enabling each file individually then setting the security for the portfolio. This managed to get two more files with Comment and Markup tools available, but the remaining 20 or so files still had none. When I open Portfolio Properties in Reader 9, under the Security tab, the upper box shows Password Security and the Show Details button pops up confirmation of the permissions I had set, including that Commenting is allowed. However, the lower box, Document Restrictions Summary, gives similar information, except that commenting is not allowed. This discrepancy makes no sense to me.
When I open the Security | Show Security Properties ... for an individual file, Commenting, Assembly, Signing and Template Creation are starred as restricted. For the few files that do allow commenting, the starred fields are the same, except that Commenting is unstarred (allowed) and Form Fields is starred instead. All the files were set up the same, and most are pdf's created from Word or Excel.
Any ideas what is going on and how to fix it?
Thanks for the help.OK, I think that is best suited to larger organisations who create lots of documents that need to be commented on around the organisation. Our application is a CAD system that exports a surface based CAD model as a U3D file embedded in a PDF. So the user in the CAD Office creates a CAD model and exports a PDF as a lightweight file format to pass to someone in another department, or maybe their customer. They want to be able to measure the odd length and hole diameter easily in Reader. I've been asked if the CAD system can create the PDF file already enabled for commenting.
-
Enabling for commenting in Reader problem
Hi all, I have a strange problem right now, maybe someone here will be able to explain it to me.
I have some PDF documents that have been "Enable for commenting in Adobe Reader" using Adobe Acrobat 7 Pro. If I open these files with Acrobat 7 Pro and I got in "File/Document Properties/Security" in the "Document Restriction Summary" section, the Commenting feature is set to "Allowed".
Everything is just fine for now.
BUT, if I open the same file in Adobe Reader 9 and I right-click in a page and Select "Properties" and go in the "Security" tab, the Commenting feature is now set to "Not Allowed"
How can that be ? What could have happen so that Acrobat says that commenting is allowed and Reader says not ?
Almost forgot to mention : those files were enabled for commenting using Acrobat 7 Pro in 2007. Other files which runs perfectly in reader 9 were enabled with Acrobat 7 Pro but in 2008 So could it only be because there was an update during that time period that would have change the way that files were enabled for commenting ?
Thanks for your help.
AlexWhat version of Adobe Reader is your client using?
-
Acrobat enable for commenting not possible
Hi,
I have a FrameMaker 8.0.4 book (about 2000 pages), which I printed from FM into PDF (printed to ps and converted to pdf with Distiller or saved as PDF directly from FM). No problems here. When I open the file in Acrobat and try to enable it for commenting, I get an error, that "I do not have permission to write to this file".
So I tried to print every chapter of the book to PDF (in both ways). Every chapter I can enable for commenting, no problems here. Then I wanted to join the enabled chapters together into one file - the commentig possibilities are gone. Therefore I wanted to enable the joined document again for commentig - the same permission error as before.
Could you please tell me, where is the problem?
Best regards,
PawelIt maybe is file size issue.
As you add the chapters one at a time can you still enable commenting as each chapter is added.
You also could try reducing the file size by using "Save as..." or the PDF Optimizer. -
Comments Enable for Commenting and Analysis in Adobe Reader...
How to run the "Comments >> Enable for Commenting and Analysis in Adobe Reader..." through Javascript or Plugin...
ThankzzzzzThis is possible with following server product:
http://www.adobe.com/products/livecycle/readerextensions/ -
How can you get audio for books on the kindle
how can you get audio for books on the kindle
The audio inputs on Macs are line level inputs and not mic inputs. You need a mic with a built in preamp (battery powered) or more conveniently a USB mic or bluetooth headset.
-
Acrobat 9 Std - Comments- 'Enable for Commenting And Analysis In Reader' option Missing
Hi,
We've purchased a copy of Adobe Acrobat 9 Standard, and need to enable comments in Reader for PDFs that we create in Acrobat. The option to "Enable For Commenting And Analysis In Reader" seems to be missing from the "comments" menu, even though all the videos/tutorials insist it's there.
I haven't found any threads about this yet, and searched google for the missing option + "missing" along with other things. Nothing related came up.
Any ideas on what we could try? Or why this is happening?
Thanks!I don't think Standard has this option. Acrobat Pro does.
This page confirms it: http://www.adobe.com/products/acrobat/matrix.html -
Is it possible to generate PDF with "enable for commenting" from AI?
I am using Illustrator CS5 and have Acrobat 9 Pro on a Mac. I would like to generate PDF's with "enabled for commenting" feature on.
I was able generate a PDF from CS5 -> open it in Acrobat 9 Pro -> enable commenting -> Save as new PDF
I prefer to skip the above mannual step and generate the PDF with commenting enabled directly from Illustrator. Any ideas?Acrobat 9 Pro doesn't support batch processing to "enable for commenting" feature. I can batch generate the PDFs from AI but will have to manually convert each PDF using Acrobat 9 Pro....(sucks!!!)
Another option is that I get a Acrobat 9 Pro for Windows - install LiveCycle - tranfer my AI generated PDFs (mac) to windows and use batch processing feature of LiveCycle to convert the PDFs into "enable for commenting" (sucks less!!!)
I would love to hear any other option available. -
Programatically "enable for commenting in Reader"
Hi, I'd like to know if it is possible to enable a pdf document for commenting in Reader programatically. My app would create a 3D pdf file (embedded U3D) and want the user to be able to measure it in Reader.
I can achieve this manually by using "Enable for Commening and Analysis in Adobe Reader" option under the Comments menu of Acrobat PRO.
Does the user have to purchase Acrobat PRO, 3D or Adobe LiveCycle Reader Extensions ES to achieve this?
Many thanks,
IanOK, I think that is best suited to larger organisations who create lots of documents that need to be commented on around the organisation. Our application is a CAD system that exports a surface based CAD model as a U3D file embedded in a PDF. So the user in the CAD Office creates a CAD model and exports a PDF as a lightweight file format to pass to someone in another department, or maybe their customer. They want to be able to measure the odd length and hole diameter easily in Reader. I've been asked if the CAD system can create the PDF file already enabled for commenting.
Maybe you are looking for
-
Clean install and time capsule restore question
Hello apple community, This is my first post ever, so here goes nothing.. I have a 2010 MBP and I want to do a clean install of lion. The reason is: 1. I just want to, and 2. I have noticed some performance issues due to all the crap I have download
-
I drop my iPad,it didn't crack but i cannot turn on
i drop my ipad ,it did not crack but i cannot turn on .i try to charge battery overnight but the screen still not on but i still hear the buzz when i get mail .please help
-
I don't know how to put an image instead of colours for background
I am usin awt and I want to put an image from my HD as background instead typical colours. How can I do this?
-
About six days ago I connected my iPod mini to my iMac G5 to update. When iTunes indicated that the update was complete I tried to eject the iPod, yet the Do Not Disconnect screen was still being displayed. Each time I try to eject it I get an error
-
How to wipe out my iMac and reset it to factory settings?
My iMac got dozens Trojan viruses and I don't even know how. So, simply want to wipe EVERYTHING out of it and just restart the whole thing from scratch how do I do that? Please, and thank you!