Pdf file permission

Hello,
I'm using Acrobat SDK PDFLib to generate a pdf and save it, but I don't know how to change file permission before saving it.
I'm using Debian and PDDocSave create my pdf with 600 permission (- rw- --- ---)
How can I change the permissions for this file while saving with PDDocSave ? (Without using chmod C function).
Regards,
William

You may use a function of the operating system.

Similar Messages

  • Apache pdf file permission issues

    I have a intranet site that I need to publish some pdf files. I am using a G5, Leopard and apache 2 and PHP. My PHP is just providing a link the pdf documents, but when a user clicks on the link they get a message "You don't have permission to access /PDF/filename.pdf on this server." I don't think there is any apache configuration to change but maybe I am wrong. Does anyone know what this could be?

    Clearly Apache doesn't have permission to serve the files (or the directory it's in).
    Check the permissions on the file. it needs to be readable at least by the user _www. The directory it's in also needs to be readable as well as executable (Apache can't look into a directory that isn't executable).

  • Printing problem with PDF files

    Hello. I recently have bought mac book (10.9). When I try to print pdf files, it does not work. I can print word files, but when I open a pdf file either by acrobat reader or preview, it does not print. Thank you very much for your help.

    Also having other "permission" based problems as well. Other people cannot open my PDFs even though I have not used any security. I'm thinking about getting a previous version of Accrobat Pro and installing that.

  • How to read and write PDF files

    I need to read pdf file and get information about its pagenumbers and format and permission allowed ...........
    then i want to ghange some of this attribute ....................
    how can do this ....................and what's API i have to use.......................

    http://www.pdfbox.org/
    regards

  • PDF File not opening in browser for sharepoint 2010

    Recently we have moved our web application from one server to another in Sharepoint 2010. Back up of entire web application was taken and restored in another server. But in the new server , the PDF files in the document library is not getting opened in browser.
    it always open in browser
    I have already made following changes but didn,t work
    Set browser file handling to Permissive from central admin
    Set "open in browser" in setting s of doc library
    Set the doc library file handling property using $docLib = $web.lists["Your Document Library Title"] $docLib.BrowserFileHandling = "Permissive" $docLib.Update()
    Added "AllowedInlineDownloadedMimeType.Add("Application/Pdf") in web app
    Installed Adober eader in client machine
    Even after trying all these, the PDF files are still opening in Client application(Adobe reader) but not in the browser
    It would have been great help if anybody provide a solution for this. I have been banging head on this for two days

    It would be handy if you didn't double post too.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/81ed0362-4033-4a31-b265-c1aba43c3d14/pdf-file-not-opening-in-browser-for-sharepoint-2010?forum=sharepointadminprevious
    To answer your question, you've tried most things that I normally see working, but there may be an extra solution here for you.  The solution 2 Powershell that deals with updating the Inline MimeType may help.
    http://www.pdfshareforms.com/sharepoint-2010-and-pdf-integration-series-part-1/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • When i try to open a pdf file it opens as a word document and then a window pops up saying file conv

    When I try to open a pdf file it opens with microsoft word which I can't view. Then a window pops up with "file convertion - permissioning.pdf
    could you tell me how to rectify this,
    Thanks

    Your file association is corrupted; reinstalling or repairing Adobe Reader will likely fix it.
    If you want to fix it manually, tell us your operating system & version.

  • How to delete .pdf file after viewing in SAP

    Hi,
    I've a program to show a pdf file within a SAP window using the open document method form the class cl_gui_pdfviewer. Now I want to delete the pdf file once I choose the back button or exit the program. How can I do that.
    In the PAI for the screen showing the pdf file, I have a case statement to perform the following
      When 'EXIT'
         call method my_pdf_viewer->close_document.
            .....    <--- some coding to try deleting the pdf file
         leave program.
    endcase.
    It seems that the pdf file is still in use by the program and cannot be deleted before leaving the program. Please help.
    Thanks in advance,
    Francis

    Hi All,
    I have had this issue and have finally resolved it.  Here's how:
    you need to destroy your custom container and html viewer control AND flush the front end cache.  This releases the lock on the file and lets you then delete it.
    Here's an example code:
    When 'EXIT'
    call method my_pdf_viewer->close_document.
      CALL METHOD my_pdf_viewer->FREE
        EXCEPTIONS
          CNTL_ERROR        = 1
          CNTL_SYSTEM_ERROR = 2
          others            = 3
      IF SY-SUBRC is initial.
        free my_pdf_viewer.
      ENDIF.
    this is the custom control parent container that contains the html control
      CALL METHOD MY_CONTAINER->FREE
         EXCEPTIONS
           CNTL_ERROR        = 1
           CNTL_SYSTEM_ERROR = 2
           others            = 3
      IF SY-SUBRC is initial.
        free my_container.
      ENDIF.
      CALL METHOD cl_gui_cfw=>dispatch.
      CALL METHOD cl_gui_cfw=>flush
            EXCEPTIONS CNTL_SYSTEM_ERROR = 1
            CNTL_ERROR = 2.
    ... <---- Delete PDF file (Delete Dataset xxxxxx.pdf)
    leave program.
    endcase.
    The other issue brought up is probably a permission issue -- trying to read the file from the presentation server versus a mapped drive that the SAP backend can access.  I read pdf files from a shared drive that the SAP backend can read/write to and it picks it up and displays just fine.
    Cheers,
    Matt

  • What happens (or can happen) when connecting to a website from a pdf file?

    (Part of this post was copied from a question I posted earlier, to which I received two correct answers)
    I'm working with WIndows 7 Home Edition. I downloaded a pattern in pdf. One of the first times I had the document open, I saw a little message, asking me to allow the document with the website it came from. At that time I didn't want that to happen so I answered 'do not allow' (or words to that effect).
    I'm working with Windows 7 HE, Adobe Reader v.10.1.1
    I have now changed my 'do not allow' to 'allow' so the pdf file can connect with the website I downloaded it from.  But I'm curious: what is or could be the purpose of that connection? Anything I have to be worried about? And from whom does that request come? The Adobe pdf file, or the website where I downloaded it from?
    THanks!
    Ciske.

    "There are a number of things within a PDF file that can request data from a webserver, or post data back to one, but they can only be triggered by the PDF file - not the server.
    A form can submit completed fields to the server, and read a response message (e.g. to confirm the data is correct) 
    A rich media annotation (Flash, video or audio) can download content from the server instead of embedding it in the file 
    Scripts within a specially-written PDF file can communicate with a server using protocols such as SOAP, to retrieve data (e.g. to look up information in a remote database)
    There's no immediately-obvious way to tell exactly what information is being sent or received unless you inspect the PDF in some detail; but because of the security models used by Acrobat and Adobe Reader, files which communicate with a remote server cannot read or write data from your own computer without your interaction - so they cannot secretly upload files, passwords, etc."
    Thank you very much for your explanation.
    I understand the three points you explaned. It is just hard to apply them to the kind of pdf file I am referring to. But I don't know anything about adobe reader, and that may very well be the reason for my lack of understanding.
    The file is an explanation, a pattern of a craft project, with extensive drawings to help understanding the directions. The website has many patterns (all pdf files) of the very same kind available.
    I believe I understand your explanation, but again, it is hard to imagine why a simple pdf file like the one we're talking about would need to connect with the website it came from. But then again, I know NOTHING about pdf files.
    So, in my simple mind, I felt I had to deny permission to connect which I have now made possible again. It's annoying to see something like this happen and not have a CLUE what it is about
    Thank you again for your help.
    Ciske.

  • Error opening PDF files from search results webpart on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error: There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    SharePoint 2013 SP1
    Web Application:
    based on template 'Publishing Portal'
    Anonymous Access enabled
    Claims based authentication: Integrated Windows Authentication NTLM
    Client Integration disabled
    Site Collection:
    Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
    added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi folks, here's the reason for my problem. I used the oob search result web part. The result items (PDF items) are rendered by the template Item_PDF.html/Item_PDF.js. This template holds a code snippet that assigns a certain OpenControl to the PDF item - that's hard coded. So, no matter what you configure in DOCICON.XML, the PDF item will be opened with the control "PdfFile.OpenDocuments". Solution is e.g. just to leave the OpenControl blank.   
    template:
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.html
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.js
    code before:
    ctx.CurrentItem.csr_OpenControl = "PdfFile.OpenDocuments";
    code after:
    ctx.CurrentItem.csr_OpenControl = "";
    Enjoy
    Harry

  • Error opening PDF files on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error:
    There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    - SharePoint 2013 SP1
    - Web Application:
      - based on template 'Publishing Portal'
      - Anonymous Access enabled
      - Claims based authentication: Integrated Windows Authentication NTLM
      - Client Integration disabled
    - Site Collection:
      - Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
      - added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
      - SC-Feature 'Limited-access user permission lockdown mode' disabled
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi Harry,
    From your description, I understand you encountered the issue when open PDF documents from search result page.
    Here is a similar thread, please try the piece of code in the page layout for the search results page from Mitch B_83:
    https://social.technet.microsoft.com/Forums/appvirtualization/en-US/545efcc6-b748-4df8-aee0-7f57f778ad1e/sharepoint-2010-opening-pdfs-in-search-results-the-filename-directory-name-or-volume-label?forum=sharepointgeneralprevious
    You could refer to this for search result page layout: Site settings > Web Designer Galleries > Master pages and page layouts > SearchResults.apsx .
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Can't open Acrobat pdf files in document library - SBS 2011

    I've uploaded some Acrobat PDF files to a document library in the companyweb (SharePoint 2010 Foundation website) on SBS 2011. But if I click on one of them in the standard view, acrobat opens and displays a message “The URL you have provided could not be
    reached. Please verify that the URL is correct and that the network location is reachable.” I'm using Acrobat Reader XI 11.0.2 and Internet Explorer 10.
    I have tried a few suggested solutions, eg to edit the docicon.xml file to include <Mapping Key="pdf" Value="AdobePDF.png" OpenControl="AdobeAcrobat.OpenDocuments"/>, check that the WebClient service is running, and
    Use Remote Interfaces permission is set on the SharePoint site. But no luck.
    I don't know if this is a problem with SBS 2011, or Acrobat, or Internet Explorer. Interestingly the pdf opens OK in Chrome. It looks like it is trying to edit the document instead of open it in the acrobat reader.
    Anyone know of a solution?

    I have found one possible solution. In my case the site was brought into Sharepoint Foundation 2010 as a migrated site from a previous SBS installation. 
    The site was imported as http://servername and the IIS site had a host header with companyweb so that users could browse to it, and all references to the site were as http://companyweb
    All my attempts to open the PDFs were using the http://companyweb URL.
    I was researching the issue and had gone through everything, but one thing got me thinking when some sites suggested that I look at the permissive or strict browser file open settings. I looked at the web application and it was set to http://servername in
    the Central Administration site. I thought hmm let's try opening the Adobe PDF docs with that URL instead, and it worked!
    So I changed the web application URL to http://companyweb and tried again and hey presto it's now working.
    I really hope this helps someone, it took me a good couple of hours of my day researching to find the solution here.
    Some extra info: we are using Adobe Reader 11.0.6 with IE11. Testing with Firefox worked, but that opens the document by downloading it locally and then using Adobe Reader. fix The above actually resolves the problem, it's nothing to do with permissive or strict
    file open settings, I set the SP site back to strict and PDFs still open fine. 

  • Performance problems to generate PDF files using CR

    Hi,
    I develop an application that read TXT files and uses this information to generate PDF files, but I'm having problems with performance to generate this PDF, each files are taking at least 1 minute to create the file. I realized that some TMP and RPT files are generated and deleted in the temp folder of the machine which is running the application, but after some time creating the PDF's the RPT files aren't deleted and I have an exception on my app:
    Memory full.
    Failed to export the report.
    Not enough memory for operation.    at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
    The server who is running this application is a Dual Core AMD Opteron 2.61 ghz, 7 GB RAM
    The framework version is 2.0 and the Crystal Reports dll version is 10.5.3700.0
    Thanks.

    Hi,
    If you are using IIS5 the give aspnet full permission to the Temp folders. For IIS6 give  IIS_wpg permission.
    For this you need to right click on the folder,
    go to properties,
    security tab,
    click on Add,
    Type aspnet/iis_wpg,
    select top note in Location and click on check on check names.
    Give full control and
    click ok.
    Also try using GC.Collect(), reportDocObject.Close() and reportDocObject.Dispose() as clean up code.
    Regards,
    AG.

  • Adobe Reader 8.1.2 (admplugin.apl) crash when opening PDF files

    Hi,
    I did spend some time today trying to get Adobe Reader 8.1.2 to run on a Citrix Access Essential 2.0 server.
    Setup
    Server OS:
    Windows Server 2003 SP2 - fully patched.
    Other software:
    Office 2003 Standard, Danish, SP3
    Symantec Antivirus 10.1
    Adobe Reader 8.1.2, Danish
    The installation is clean (1 week old).
    Problem description:
    When opening PDF files, Adobe Reader crashes before showing any content from the PDF file. The module crashing is admplugin.apl.
    Work-arounds tried:
    Uninstalling and reinstalling Adobe Reader 8.1.2 (DK).
    Disabling Antivirus (service stopped)
    Replacing admplugin.apl with admplugin.apl from Adobe Reader 8.0
    Uninstalling DK version and installing US version.
    Adding user to local Administrators to exclude any permission related problems.
    Deleting Adobe folders from users profile Application Data\Adobe\... and Local Settings\Application Data\Adobe\...
    Turn DEP off
    Solution:
    Finally I gave up and installed 7.0.9 (Danish). It works as expected.
    It seems that the problem is known and a few user has reported this. One Adobe KB article mentions the problem, and the solution is to disable some 3. party diagnostic/support tools provided by DSL providers. This is definitively not the issue in this installation.
    Anybody from Adobe having any input to this problem?
    Best regards from Denmark!

    Hi,
    I am having a similar issue with Ver 8.1.2 running over cirtix with a similar setup to Jans-Peter.
    The difference is that Reader opens fine but when you try to edit preferences it crashes.
    This only happens on an citrix session. If I run reader on the server directly it works OK.
    However after reading above I can replicate the problem on the server by moving or deleting the ADMPlugin.apl file.
    Any further ideas at all?
    Mark

  • PDF file not open in Sharepoint Brower

    I have one Document Library which has all kind of files.. i have issue with PDF files...
    I tried the below steps yet i cant able to...
    1. Open the document library where you have stored the .pdf file.
    2. Go to the advanced settings and make sure that you have selected "Open in web browser" and not in client application.
    3. Login to
    Central Administrator--> Application management --> Web Application generalsettings
    and select your web application.
    4. Then select your web applicaion --> general settings.and
    change browser file handling to Permissive from strict as shown below:
    Hai

    Thanks
    its working now...
    Yet i am trying to open the share point site in Apple and Android Tablets.... its opens
    ....but only for the android devices... the pdf or word fles. not open its always in in download status and unsuccessful...?
    I have installed Adobe reader in Android Tablet...
    Hai

  • PDF file is not opening in adobe reader

    Hi,
    When some users are trying to click on the pdf files then they are opening in browser rather than in adobe reader. I have checked almost all the settings that i could found for opening the files in client app. Few of them were-
    1. Web application option set to "strict".
    2. Document library option set to open in client application.
    3. Adobe reader version is 10.1.3
    I can make it work in Firefox using the pdf settings but i don't find any settings for IE 9 and above. Thanks in advance.
    Ajit

    Try these steps on the affected machines:
    Open Internet Explorer, and choose Tools > Manage Add-ons.
    Under Add-on Types, select Toolbars And Extensions.
    In the Show menu, select All Add-ons.
    <small style="margin-margin-right:0px !important;margin-bottom:0px;margin-padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:italic;font-size:14px;font-family:inherit;">Select All Add-ons from the Show menu in the Manage Add-ons dialog box.</small><small
    style="margin-margin-right:0px !important;margin-bottom:0px;margin-padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:italic;font-size:14px;font-family:inherit;"></small>
    In the list of add-ons, select Adobe PDF Reader.
    Note:
    If you do not see the Adobe PDF Reader add-on, try the other options on the menu. For example, on some systems, the add-on appears when you select Run Without Permission.
    Click the Enable or Disable button (it toggles depending on the status of the selected add-on):
    Enable sets the Adobe PDF Reader add-on to open PDFs in the browser.
    Disable turns off the add-on so it does not open PDFs in the browser.
    <small style="margin-top:0px;margin-right:0px !important;margin-bottom:0px;margin-left:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:italic;font-size:14px;font-family:inherit;">Select Adobe PDF Reader, and click the Enable/Disable button.</small>
    Also check in Adobe Reader > Preferences > Internet, look for the Allow fast web view, this is normally checked by default.

Maybe you are looking for