Assemble Documents with READ_ONLY permissions set

Greetings,
We receive a boatload of documents from different sources, and have to package them together.  Adobe Assembler service seemed the obvious choice, but we've run into one problem in particular.
Many of the documents we receive have Read Only security that is password protected.  When I try to run those through Assembler, it fails and I receive the error message further below in the logs.
Notice, it says Package operation failed due to permissions for PDF document "0"
We don't have access to these passwords and never will, so what can I do??  Do I have to use a third-party tool to package documents that have read-only permissions?  Because previously we were able to package these just fine with a third party PDF Creator.  We don't plan to modify anything in the document... just need to package a bunch of them together.  Any suggestions??
Any suggestions or advice is much appreciated,
Thanks!!
GS
2009-12-11 11:15:29,308 ERROR [com.adobe.livecycle.assembler.AssemblerServiceImpl] ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.
com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.
at com.adobe.livecycle.assembler.AssemblerServiceImpl.makeResult(AssemblerServiceI mpl.java:828)
at com.adobe.livecycle.assembler.AssemblerServiceImpl.execute(AssemblerServiceImpl .java:467)
at com.adobe.livecycle.assembler.AssemblerServiceImpl.invoke(AssemblerServiceImpl. java:408)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvok erImpl.java:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationIn terceptor.java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestI nterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransact ion(TransactionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.exe cute(EjbTransactionCMTAdapterBean.java:342)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doS upports(EjbTransactionCMTAdapterBean.java:212)
at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSe ssionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedC onnectionInterceptor.java:149)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessi onInstanceInterceptor.java:154)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointIn terceptor.java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationIntercepto r.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.ja va:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.jav a:363)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderIn terceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory. java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy. java:88)
at $Proxy165.doSupports(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransa ctionProvider.java:104)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(Tran sactionInterceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestI nterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(Invo cationStrategyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestI nterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidSta teInterceptor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestI nterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(Authoriza tionInterceptor.java:102)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestI nterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java :48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestI nterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:1 15)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.soap.axis.AdobeAxisServiceProvider.invokeMethod (AdobeAxisServiceProvider.java:222)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327 )
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:173)
at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationF ilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java: 81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve. java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociati onValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 7)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnecti on(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 27)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread. java:112)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "appendDocument" operation failed on "1".
at com.adobe.internal.pdfm.assembly.DocAssembler.appendDocument(DocAssembler.java: 769)
at com.adobe.internal.pdfm.assembly.DocAssembler.assemble(DocAssembler.java:185)
at com.adobe.internal.ddxm.task.pdf.AssemblePDF.execute(AssemblePDF.java:130)
at com.adobe.internal.ddxm.blueprint.BluePrint.execute(BluePrint.java:275)
at com.adobe.internal.ddxm.ddx.Node.execute(Node.java:373)
at com.adobe.internal.ddxm.Executive.execute(Executive.java:270)
at com.adobe.internal.ddxm.Executive.execute(Executive.java:221)
at com.adobe.livecycle.assembler.AssemblerServiceImpl.execute(AssemblerServiceImpl .java:465)
... 78 more
Caused by: com.adobe.internal.pdfm.packagefiles.PackageFilesException: PDFM_S22004: Package operation failed due to permissions for PDF document "0"
at com.adobe.internal.pdfm.packages.PackageService.checkPackageFilesPermissions(Pa ckageService.java:2777)
at com.adobe.internal.pdfm.packages.PackageService.aggregatePackageSchemaAndDispla yOrder(PackageService.java:1973)
at com.adobe.internal.pdfm.packages.PackageService.aggregatePackage(PackageService .java:1629)
at com.adobe.internal.pdfm.assembly.DocAssembler.appendDocument(DocAssembler.java: 667)
... 85 more
Caused by: com.adobe.internal.pdfm.util.PDFMPermissionException: PDFM_S00014: DOC_MODIFY permission is required for this operation.
at com.adobe.internal.pdfm.util.PDFMPermissionsManager.assertPermitted(PDFMPermiss ionsManager.java:100)
at com.adobe.internal.pdfm.packages.PackageService.checkPackageFilesPermissions(Pa ckageService.java:2775)
... 88 more

Thanks Kathy for the reply.
I did find this and try it out, although our end-users are expecting a single flat PDF with all of the content because that is what they have always been given.  Until Assembler, we never even knew that this wasn't desired behavior because every other 3rd party product out there makes this so simple.
I totally understand the concept and reasons why Adobe is doing this, but at the same time - I feel like it makes the Adobe Assembler inferior to the 3rd party applications in this respect because they can all do this.  It would be really nice if this could be reconsidered at least for creating a PDF out of documents that you have no intention of modifying.  The document is not password protected to open (it simply has a password on DOC_MODIFY, so it can be read by anyone but not modified without a password). Anyone could take and copy the read-only content out of the document to assemble into another doc however they wanted anyway, unless they use the Adobe Assembler service...
Regards,
GS

Similar Messages

  • Documents with individual permissions reinheriting permissions after check in

    I have a folder within a SharePoint 2010 document library, with several excel spreadsheets within it.  The excel spreadsheets all have individual permissions on them.  Check-out is inforced on the library.  A user then checks-out their
    spreadsheet, amends it and checks it back in.  The spreadsheet then loses it individual permissions and reinherits the permissions from the folder above.  Does anyone know how to prevent this from happening?  As we need to keep the individual
    permissions.

    looks strange. let us know some more details.
    1. check the workflow if any associated
    2. Check the is that document library created based on custom template
    3. Upload a document to the library and break the permission. now check-out--> do some modification to the document--> save it-> check-in the document. Now check whether the permission remains or reinherited from parent
    4. check if ant event receiver associated with content type if custom content type used.
    Hope this will help you
    Senthilrajan Kaliyaperumal

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Access denied for folder when permissions set with WMI

    Hi,
    When I add/modify access rights based on the Win32_ACE class, there seems to be a difference in the result, then when setting it with the GUI in Windows.
    The situation is as follow:
    I want to set Modify access on a remote folder, but also want to avoid deletion of the folder itself. This can easily be done by setting "deny delete on this folder only" in addition to "allow modify to this folder, files and subfolders".
    So far no issue.
    Now I notice that, although the GUI shows exactly the same result in advanced settings of the security property, the folder set with WMI script gives a deny when opening it with the user account. The same folder, set with the same security and result in
    the advanced tab, but set in the GUI, works fine.
    Note: The reason that I use WMI is because the remote system is a standalone machine, not sharing the same domain or trust.
    I compared the ACEFlags, AceType and AccessMask for both the GUI set and script set permissions, and they are exactly the same.
    GUI => AccessMask:1179817 AceType:0 iAceFlags:3
    Script => AccessMask:1179817 AceType:0 iAceFlags:3
    What a strange world we live in... :-)
    Any idea?

    What Operating System Interface are you referring?  What program?
    You are being obtuse. What is it that you are trying to compare. THe settings in WMI cannot be directly compared to anything in the Security Wizard.
    ¯\_(ツ)_/¯
    Just the properties of the folder in Windows on the security tab. The result is the same for both the permissions set with the interface as well as the one set with the WMI script. The two references you see are just taken with WMI:
    Set by Windows interface => AccessMask:1179817 AceType:0 iAceFlags:3 
    Set by WMI script => AccessMask:1179817 AceType:0 iAceFlags:3
    This are the values "AceFlags", "AceType" and "AccessMask" from management class WIN32_ACE:
    http://msdn.microsoft.com/en-us/library/aa394063(v=vs.85).aspx
    I just want to show that the actual ACE object returns the same values for both methods, but the effect appear to be that the script set permission are denied. And I am looking for the reason why.
    Can you provide the script that you're using to create the ACE(s) and add them? If I'm understanding what you're trying to do, there should be two ACEs created: one to allow the modify access and one to deny the folder deletion. The ACE you're showing is just
    an allow ACE (AceType 0).
    That is correct there are (or should be) two ACEs. I cannot get hold on my source right now (will be later today), but my code is based on this source:
    http://www.minasi.com/forum/topic.asp?TOPIC_ID=7501
    What I basically do is getting the DACL properties, loop through it to check that the user exists that I want to update. If it does I check that the current AceType is of the same type (allow or deny) that I am updating/adding. If that type is a match, I
    replace the ACE object with the new Flag, Type and Mask using a Win32_ACE object. If type type doesn't match, then I add both the current ACE with the new ACE at the same time. I noticed that if I don't do it at the same time, only the last remains. If the
    user doesn't match I check that the AceFlags is not equal to 16 (inherit) and then add the original ACE object in the ACE array. At the end I add the new ACE if the user was not found at all (new). The array of individual ACE objects is added to List of managementobjects
    and then again linked to the DACL value.

  • Run with owner permissions is not found in Action set, state machine etc

    Hi, I cannot find the "Run with owner permissions " when configuring an Action set in the common attribute in Nintex 2010 work flow.  Could you please let me know why , and if possible how to activate this.Thanks.

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is only one forum among the many
    that are on the TechNet Discussion Forums, and given your post, you likely chose the wrong forum.  This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please
    don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more
    detail about your problem, that could include screenshots of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…?
    forum and it’s here: http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • The last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?

    the last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?

    Use the Subfolder pulldown to set the subfolders:

  • Error when opening document with ECL control: INVALID_DATA

    Hi Gurus,
    I've tried to search the net for this problem but could not find anything and I'm stuck now.
    Description:
    we're using ECL to view attached documents (to POs etc.) which are stored through ArchiveLink on the content repository.
    when we try to open this document, time-to-time we get following error:
    Error when opening document with ECL control: INVALID_DATA
    Message no. SDV004
    by time-to-time I mean that when we try to open same attachment again it opens successfully (sometimes we need to re-open it 3-4 times to get it)
    what we've tried is to enlarge timeout for HTTP protocol (tx SMICM, from former 30 to actual 60) but only effect we got is that we're waiting for the error longer time
    It will be really great if anybody of you guys can give me an advice where the problem can be or where should I look and what to check
    Thanks,
    David

    Hi Christoph,
    thanks for tip, unfortunately this was already flagged, currently settings are:
    for Display Settings:
    yes - include ECL control
    use HTML control
    empty - maximum viewer wait time
    (do you think that setting some value for this could help)
    yes - deactivate generic object services in viewer
    no - doc display as dialog box
    yes - deactivate data provider cache
    Storage Settings:
    yes - always copy document class from document type
    yes - permit multiple assignment
    Thanks,
    David

  • Problem in printing pdf document with java code

    Hi All
    I want to print a pdf document with java code i have used PDFRenderer.jar to compile my code.
    Code:
    File f = new File("C:/Documents and Settings/123/Desktop/1241422767.pdf");
    FileInputStream fis = new FileInputStream(f);
    FileChannel fc = fis.getChannel();
    ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
    PDFFile pdfFile = new PDFFile(bb); // Create PDF Print Page
    PDFPrintPage pages = new PDFPrintPage(pdfFile);
    // Create Print Job
    PrinterJob pjob = PrinterJob.getPrinterJob();
    PageFormat pf = PrinterJob.getPrinterJob().defaultPage();
    pjob.setJobName(f.getName());
    Book book = new Book();
    book.append(pages, pf, pdfFile.getNumPages());
    pjob.setPageable(book);
    // System.out.println(pjob.getPrintService());
    // Send print job to default printer
    pjob.print();
    but when i am running my program i am getting error
    Exception in thread "main" java.awt.print.PrinterException: Invalid name of PrintService.
    Please anybody, knows the solution for this error?
    Thanks In Advance
    Indira

    It seems that either there is no default printer setup or you have too many printers or no printer setup at all. Try running the following code. It should print the list of available print services.
    import java.awt.print.*;
    import javax.print.*;
    public class PrintServiceNames{
         public static void main(String args[]) throws Exception {
              PrintService[] printServices = PrinterJob.lookupPrintServices();
              int i;
              for (i = 0; i < printServices.length; i++) {
                   System.out.println("P: " + printServices);
    }From the list pick one of the print service names and set it explicitly like "printerJob.setPrintService(printServices);" and then try running the program.

  • How do I share one book with a class set of ipads

    I am new to ipad I was given 14 iPads and want to be able to share books(class set) and documents with all of the iPads so that we could review the books and documents together

    For books, see my previous post to you: https://discussions.apple.com/thread/5239492?tstart=0
    For sharing documents like PDFs, I like using Dropbox. Each of your students can download the Dropbox app on his/her iPad. You can then set up a shared folder in Dropbox that each of your students can view or edit (depending on what permissions you set on the folder). From your computer or iPad, you can add PDF files to the Dropbox folder and your students will wirelessly be able to view these documents from their Dropbox app.
    Hope this helps!
    ~Joe

  • Cannot open Office 2004 documents with Office 2011 on Lion Server

    I am in the process of moving our documents from a Tiger server to Lion server.  My users who are using Office 2004 are having no issues, but the users with Office 2011 cannot open any documents with the .doc extension.  I have tried logging on using afp and smb and I get different error messages but no access.  When logging on as smb if I try to double-click I get the file type blocked message.  If I go to File/Open I get the message Word cannot open this document.  The file be in use, etc.  There are no special characters in the file name.  If I try to open a docx document then no problem.  The same problem occurs with xls versus xlsx documents.  Does anyone know if there is something different I should be doing.  Permissions are set for full access.  We have a mix of users with both versions of Office and over 90% of the file server are .doc or .xls documents.  I cannot fully implement until I get this resolved.

    I am having the same problem with UCM 10gr3. Our desktop engineers are doing an enterprise upgrade of MS Office to 2010 and this issue just surfaced. Trish, how do your users authenticate to Beehive? We are using a cusom connector using our AD.

  • Assemble PDF with attachments

    Hi All,<br /><br />I am planning to assemble a PDF document with attachments. Or as I see my requirement is to create a PDF and attach various files to it. The PDF would then be sent as an attachment to an email.<br /><br />The user should be able to open the emailed PDF and save the image/application attachments seperately.<br /><br />To achieve this I had generated the sample DDX and tried it in a process, but no luck.<br /><br />All the source objects are avaialble int he assembler map object of documents with the correct key value.<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><DDX xmlns="http://ns.adobe.com/DDX/1.0/"><br /><PDF result="pdf2image_res.pdf"><br /><PDF source="pdf2image_res.pdf"><br /> <FileAttachments source="image-1.jpg" nameKey="image-1.jpg"><br />  <File filename="image-1.jpg"/><br /> </FileAttachments><br /> <FileAttachments source="image-2.jpg" nameKey="image-2.jpg"><br />  <File filename="image-2.jpg"/><br /> </FileAttachments><br /></PDF><br /></PDF><br /></DDX><br /><br />Then I extract the generated pdf in a document like '/process_data/docAssemblerMap[@id='pdf2image_res.pdf']'<br /><br />The generated PDF does not have the attachments embedded in it.<br /><br />Any thoughts/help would be greatly appreciated.

    I tried it with your ddx (with minor modification)and it worked fine.
    I would try to use the Record and Play back to make sure all the components of your map are set properly.
    Jasmin

  • Copying Documents With Version History

    Hello,
    I am working on a ribbon button for SharePoint 2013 with which users (with contribute permissions) can open a dialog to move selected documents to a different library (with the same content type) and enter soms Metadata to be set for the document.
    One of the requirements for this is that the version History should be copied along with the document. Of course I googled for some code that allready does what I want to do and i stumbled upon this blog:
    http://sharepointvenividivici.typepad.com/sharepoint-customization/2011/06/maintain-file-version-history-when-movingcopying-files-between-sharepoint-sites.html
    Because this code also sets the modified and created information for the document the code runs under elevated priviliges because the users do not have the rights to modify that data.
    At first this seemed to be the perfect solution, but after a while we found something truly annoying. The first time you copy the document it works perfectly and the document including version history is being transferred. But the second time the document
    does get copied with the version history but in the version history the modified by is set to System Account for every version.
    Does anyone know what can cause this?
    After doing some more digging, I believe that the problem lies with the following function
    SPFile fileDest = libDest.RootFolder.Files.Add(
                     urlDestFile,
                     streamFile,
                     hashSourceProp,
                     userCreatedBy,
                     userModifiedBy,
                     dateCreatedOn,
                     dateModifiedOn,
                     strVerComment,
                     true);
    This function apparently sets the Created, Created By, Modified and Modified By properties to the values you provide, but when you later try to read this properties with code you get the userwith which you ran the code and not the user you provided. Does
    anyone know a way to fix this?

    Hi,
    According to your post, my understanding is that you wanted to copy documents with version history.
    I had written a simple demo to copy files to another library, and modified the code as below,  you can refer to the following code snippets to check whether it works.
    public static void CopyFileWithVersion()
    using (SPSite site = new SPSite("YourSiteURL"))
    using (SPWeb web = site.OpenWeb())
    SPList sourceLib = web.Lists["Lib1"];
    SPList DestinationLib = web.Lists["Lib2"];
    SPListItem itemSource = sourceLib.GetItemById(2);
    SPFile fileSource = itemSource.File;
    SPUser userCreatedBy = fileSource.Author;
    DateTime dateCreatedOn = fileSource.TimeCreated.ToLocalTime();
    //Get the versions
    int countVersions = itemSource.File.Versions.Count;
    for (int i = 0; i <= countVersions; i++)
    Hashtable hashSourceProperties;
    Stream streamFile;
    SPUser userModifiedBy;
    DateTime dateModifiedOn;
    string strVersionComment = "";
    bool bolMajorVerison = false;
    if (i < countVersions)
    SPFileVersion fileSourceVerison = itemSource.File.Versions[i];
    hashSourceProperties = fileSourceVerison.Properties;
    userModifiedBy = (i == 0) ? userCreatedBy : fileSourceVerison.CreatedBy;
    dateModifiedOn = fileSourceVerison.Created.ToLocalTime();
    strVersionComment = fileSourceVerison.CheckInComment;
    bolMajorVerison = fileSourceVerison.VersionLabel.EndsWith("0") ? true : false;
    streamFile = fileSourceVerison.OpenBinaryStream();
    else
    userModifiedBy = fileSource.ModifiedBy;
    dateModifiedOn = fileSource.TimeLastModified;
    hashSourceProperties = fileSource.Properties;
    strVersionComment = fileSource.CheckInComment;
    bolMajorVerison = fileSource.MinorVersion == 0 ? true : false;
    streamFile = fileSource.OpenBinaryStream();
    string urlDestinationFile = DestinationLib.RootFolder.Url + "/" + fileSource.Name;
    SPFile fileDestination = DestinationLib.RootFolder.Files.Add(
    urlDestinationFile,
    streamFile,
    hashSourceProperties,
    userCreatedBy,
    userModifiedBy,
    dateCreatedOn,
    dateModifiedOn,
    strVersionComment,
    true);
    SPListItem itmNewVersion1 = fileDestination.Item;
    itmNewVersion1["Created"] = dateCreatedOn;
    itmNewVersion1["Modified"] = dateModifiedOn;
    itmNewVersion1.UpdateOverwriteVersion();
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Jason Guo
    TechNet Community Support

  • Flatten/Assemble XDPs with Different orientations

    I was able to flatten XDPs into a single PDF successfully using the invokeDDX.
    The issue that I am facing now is while merging 4 forms together, if the 2nd or 3rd form happens to be in Landscape orientation, all rest of the forms also convert to the Landscape orientation. Also, when I try printing it, the Printer says the Printer Size did not match Paper type or something of that sort. Following was my DDX:
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
      <XDP result="MyXDPResult">
        <XDP source="sourceXDP1"/>
        <XDP source="sourceXDP2"/>
        <XDP source="sourceXDP3"/>
        <XDP source="sourceXDP4"/>
      </XDP>
      <?ddx-source-hint name="sourceXDP1"?>
      <?ddx-source-hint name="sourceXDP2"?>
      <?ddx-source-hint name="sourceXDP3"?>
    </DDX>
    How do I get forms with different orientations to assemble and print? Would appreciate any help in this regard.
    Thanks,
    Saurabh

    dreaming of weaving wrote:
    > Allow Tool Recording ( You used no brush type tool to be recorded and this option is only useful if all document processes are the same size and resolution.  This feature is hardly ever useful. It was poorly designed and implemented by Adobe.  Their Plug-in ScriptListener even disables this feature if you install the plug-in )
    > Create new Set
    >Create new Action
    > Click record
    > add vertical "© name" to a new layer in PS file (if you are using the text tool here and want to process different size image you have a problem here)
    > position it
    > Layer > Flatten Image, (no need to flatten you can save a layered or flat file by choosing the proper file type.)
    > File, Save, Close image. (no need to save or close if you are going to  use the image processor to batch process images.  The Image processor will open the files run your action a save the file types you set up. When all the file types have been save for a image. The Image processor will close the image and move on to the next image and repeat the process till all image files have been processed.)
    > Stop recording
    It seems you new to "Actions" .  You may fine my crafting actions package useful.  It even contains a sample watermarking action that can watermark any size document with watermarks. The Action show three methods.  Custom Text Layer,  Shape layer and Custom Loge Layer.
    Crafting Actions Package UPDATED May 2, 2014 Updates some text and added StampExif Action and Script.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Can't share documents with others on my computer

    I have File Sharing turned on in my iMac Preferences. I went to the users folder and then clicked on the shared folder. I put a folder containing some .pdf files in there. Then I had my wife login. She went to the shared folder and was able to see the folder I put there. However, there was a little red warning sign on the folder. When she tried to open the folder, she was told she didn't have sufficient privledges. What am I missing here?
    Thanks!

    The folder you moved there had its permissions set to No Access for all users but you (this is the default for your Documents, Pictures, Music, and Movies folders - was it one of those?)
    You could Get Info the folder and adjust the permissions so that other users can read its contents. Or you could just go to the /Users/Shared folder, and create a new folder inside. By default, all new folders are readable by other users. Just put your files into that.
    Oh, and you can turn off File Sharing. It is only needed to share files with remote computers. If you don't want or need to do that it's best to leave it turned off.

Maybe you are looking for