Preserving filename when encrypting PDFs in Preview

Dear All,
When I encrypt PDFs using Preview in the normal way (Print -> PDF -> Set Security) everything works fine and the filename is preserved. However if I do this in Automator the filename gets given an alphanumeric name. I don't understand why this is. When I open that file, it asks for the password that I had originally set and it reveals the document.
My workflow is like the following:
Get Selected Finder Items (i am only selecting doc not docx)
Convert Format of Word Documents (to pdfs)
Encrypt PDF (Picked out from the Documet list)
Move Finder Items (To desktop)
Quit Application (Word in this case)
All of the above seems to be just fine only that the filename gets converted to something else.
On the system.log file I get the following entries (hope this helps!)
Feb 1 12:07:10 Macintosh [0x0-0x300300].com.apple.Preview[17593]: Sun Feb 1 12:07:10 Macintosh.home Preview[17593] <Error>: CGCryptorProcessBytes: CCCryptorUpdate failed: error -4300.
Feb 1 12:07:42: --- last message repeated 2 times ---
Feb 1 12:09:38 Macintosh mdworker[17730]: (Error) Import: Importer force killed!
Feb 1 12:09:38 Macintosh com.apple.launchd[1] (0x1004a0.mdworker[17730]): Exited with exit code: 1
Feb 1 12:10:42 Macintosh /Applications/Microsoft Office 2008/Microsoft Word.app/Contents/MacOS/Microsoft Word[18057]: CPSGetProcessInfo(): This call is deprecated and should not be called anymore.
Feb 1 12:10:42 Macintosh /Applications/Microsoft Office 2008/Microsoft Word.app/Contents/MacOS/Microsoft Word[18057]: CPSPBGetProcessInfo(): This call is deprecated and should not be called anymore.
Feb 1 12:10:54 Macintosh /Applications/Automator.app/Contents/MacOS/Automator[4259]: setting security information: /Users/rjani5/Desktop/1zwCC1.pdf: Operation not permitted
Many thanks in advance.
Kind regards,
Vnayak

I played with the encrypt pdf action and it seems buggy. it can't replace the original (non-encrypted) pdf. instead it creates a temp file with a random alpha-numeric name and passes it to the next action. the way around it as i see it should be to first save the name of your word file in a text variable and after the encrypt action (or maybe after the move action) rename the resulting file. "rename finder items" doesn't seem to want to accept variables so you'll have to do the renaming via apple or shell script.

Similar Messages

  • Turn off notes when printing PDF from preview?

    How do you turn off the annotations when printing a PDF from Preview so that the annotation notes do not appear in the margin of the printed document? Is this possible? If not, it should be.
    When a page has annotations preview automatically reformats the printed page so that the note appears alongside it. I would like to print it the normal side, without the annotations that I added. I don't mind if the little flag remains in the text to indicate that there is a note, but I can't figure how to turn off the function that reduces the page and switches the orientation.

    The "Print" window that you open when printing contains various optional settings prior to proceeding with printing.

  • Permissions with problem when encrypting pdf with certificate

    I am using the following javascript code to encrypt a pdf using a certificate:
                        var thePermissions = {
                             allowAll: false,
                             allowAccessibility: false,
                             allowContentExtraction: false,
                             allowChanges: "none",
                             allowPrinting: "none"
                         var theCertificate = security.importFromFile(
                             "Certificate",
                             "/c/user.cer"
                         var theUserEntity = {
                             firstName: "The",
                             lastName: "User",
                             fullName: "The User",
                             certificates: theCertificate,
                             defaultEncryptCert: theCertificate
                         var theGroup = { userEntities: [ theUserEntity ], permissions: thePermissions };
                         encryptForRecipients( { oGroups: [ theGroup ] } );
                        saveAs("encrypted.pdf");
    The file "encrypted.pdf" resulting is in fact encrypted, but the permissions doesn't seem to be correct. For instance, the Document Properties show that there are no document restrictions (DocumentProperties.PNG), but when the details are shown, it seems that the correct restrictions apply (DocumentSecurity.PNG). As can be seen in the permissions variable, there should be no permissions to the pdf generated. Can someone possibly help me with this?
    Additional info: there should have no human interaction in the process, the certificate is not fixed (preventing using encryptUsingPolicy), and will be selected based on the file name of the original pdf.

    Hi Leonard,
    I see the same thing executing the script from the JavaScript console. There is a slight wrinkle in the steps to reproduce. Even if everything worked as it's supposed to, you would still need to close and then reopen the file in order to get the perm restrictions to take effect. This is because when you initially encrypt the file you are still the document owner, and thus none of the perms have yet taken effect. However, once you do close and then reopen the file (thus forcing an authentication), the file should open with the perms being enforced, but alas, they are not.
    Interestingly, if you go into the Document Properties and then select the Security tab (or just click the Permissions Details button in the DMB) you see that the Restriction Summary shows that everything is allowed, but when you click the Show Details button, which just displays the restrictions applicable to the encryption handler, it shows the correct settings. Of course the real bug isn't that the restriction summary is incorrect, but rather that it is correct and all of the supposedly restricted operations are allowable.
    I'll enter this as a bug against 10 along with the ER to add the encryption algorithm as an option to the encryptForRecipients JS function.
    Steve

  • CVAW package : wrong filename when saving pdf file

    Hi experts,
    In my bsp, I have a link to the standard bsp CVAW_VIEW_DOCFILE in order to display an original of a DIR.
    An example of a complete URL to open an original :
    https://daplmdv.sylvania.com:10443/sap/bc/bsp/sap/CVAW_VIEW_DOCFILE/ViewDocFile.htm?pa_document_key=ZPI000000000000000000185252800EN&pa_file_id=49A5C8136B110187E1008000C61CAA2D&filename=d:\seal\data\convserv\49A5B257145901AAE1008000C61CAA2D\in\test.pdf
    In this case, the pdf has been displayed but when I use the button "Save a copy" in acrobat reader, the windows proposed "ViewDocFile.pdf" instead of "test.pdf".
    In fact, I have always this name when I open the document first and try to save it after.
    With .doc files, I have another window which ask me if I want to open or save the document (I think I have this window because the doc is not automaticaly opened in internet explorer). So, when I save it directly, the name is correct but when I open it and then save it, MS word propose me the name "ViewDocFile.doc".
    Do you have an idea how I can have the original name and not ViewDocFile.ext ?
    Thanks for your support

    Hi Regis,
    You have put this thread as answered.
    I have the same problem, can you tell me how you fixed this problem?
    thanks!
    KR,
    Micha

  • Chinese characters copying incorrectly when saving pdfs with Preview

    So this is a very strange problem. When I save a .pdf that I have annotated in Preview, it saves fine and everything continues to display correctly. However, if I then try to copy Chinese characters from the pdf, it pastes gibberish. F'rex:
    灿烂辉煌 becomes "3456"
    and
    遇到的问题 becomes " !"
    Does anyone know what is going on and how to deal with it?

    The strange part is that initially the Chinese characters copy fine. It's only after I save the .pdf that copying goes all wonky.
    I think there is a bug related to annotation.
    Is there any way to control what encoding Preview uses when saving?
    No. PDF is the worst possible format to use for any kind of editing.
    Have you tried Adobe Reader? Or Skim?
    http://skim-app.sourceforge.net/
    Preview is not always the best option.

  • Use varying page sizes when merging PDFs in Preview?

    In 10.5, one could use Preview to merge multiple images or pages into a single PDF. Just open one document, show thumbnails in the sidebar, and drag in any additional items. The additional items could be other PDFs or images (like JPGs, Photoshop files, etc.). The dimensions and page size of the new items were maintained.
    For example, I would use this a lot to package website mockups and other designs into a single document to share with clients. The title page could be a different size from the mockups.
    In 10.6's Preview, when I drag items into the sidebar, they are added to the PDF, but placed on a page that is the size of the pages already in the document.
    For example, I have a couple pages of 8.5x11 in my PDF. Then I drag in an image that is much smaller, but Preview frames it on a white 8.5x11 page, so there are huge white borders around the image.
    Is there a way to get 10.6 Preview to behave more like 10.5 in this respect? Thanks!

    In Preview's sidebar, just drag one document on top of (i.e. not above and not below) another, but it sounds as if you're doing that.
    Make sure you are doing this in the sidebar:
    and make sure they are both PDFs.

  • Kernel panic when viewing PDFs in Preview

    Hello. I have recently been digitizing documents to my Macbook Pro. When I try to open the resulting PDFs, my Macbook has a kernel panic and restarts.
    When I open the PDF, Preview has trouble displaying it properly. It looks corrupted. Zooming out seems to corrupt the image more, until the laptop hangs and restarts. I tried to open a PDF in a different app (Skim) and the same issue occurred.
    Thanks for any help solving this.
    OS X Yosemite 10.10.2
    Model Name:    MacBook Pro
      Model Identifier:    MacBookPro8,1
      Processor Name:    Intel Core i5
      Processor Speed:    2.4 GHz
      Number of Processors:    1
      Total Number of Cores:    2
      L2 Cache (per Core):    256 KB
      L3 Cache:    3 MB
      Memory:    4 GB
    ==KERNEL PANIC LOG==
    Anonymous UUID:  
    163D9832-12FF-AD43-3A95-F020D40F783A
    Tue Feb 17 20:21:21 2015
    *** Panic Report ***
    panic(cpu 1 caller 0xffffff800cc1a46e): Kernel trap at 0xffffff7f8ed91e68, type 0=divide error, registers:
    CR0: 0x000000008001003b, CR2: 0xffffff8098274d20, CR3: 0x000000012f6a1098, CR4: 0x00000000000626e0
    RAX: 0x00000000ffffffff, RBX: 0xffffff801813aa00, RCX: 0x0000000000000000, RDX: 0x0000000000000000
    RSP: 0xffffff80a74db640, RBP: 0xffffff80a74db740, RSI: 0xffffff800d229750, RDI: 0x0000000000000000
    R8:  0x00000000000002dc, R9:  0x0000000000000000, R10: 0xffffff7f8edd1ca0, R11: 0xffffff80a8d8b000
    R12: 0xffffff801813aa00, R13: 0xffffff8098274000, R14: 0xffffff807724c000, R15: 0x0000000000000000
    RFL: 0x0000000000010246, RIP: 0xffffff7f8ed91e68, CS:  0x0000000000000008, SS:  0x0000000000000000
    Fault CR2: 0xffffff8098274d20, Error code: 0x0000000000000000, Fault CPU: 0x1
    Backtrace (CPU 1), Frame : Return Address
    0xffffff80a74db2f0 : 0xffffff800cb2fe41
    0xffffff80a74db370 : 0xffffff800cc1a46e
    0xffffff80a74db530 : 0xffffff800cc36683
    0xffffff80a74db550 : 0xffffff7f8ed91e68
    0xffffff80a74db740 : 0xffffff7f8eda315d
    0xffffff80a74db770 : 0xffffff7f8ed76b69
    0xffffff80a74db7a0 : 0xffffff7f8ed76e94
    0xffffff80a74db7f0 : 0xffffff7f8edb53f4
    0xffffff80a74db830 : 0xffffff7f8edb469b
    0xffffff80a74db860 : 0xffffff7f8edb5022
    0xffffff80a74db8b0 : 0xffffff7f8edbb3f7
    0xffffff80a74db940 : 0xffffff7f8ed7e782
    0xffffff80a74db970 : 0xffffff7f8edb481d
    0xffffff80a74db9a0 : 0xffffff7f8ed7d901
    0xffffff80a74dbae0 : 0xffffff7f8ed7bf05
    0xffffff80a74dbb30 : 0xffffff800d0ffb16
    0xffffff80a74dbb60 : 0xffffff800d10122b
    0xffffff80a74dbbc0 : 0xffffff800d0fe9c3
    0xffffff80a74dbd00 : 0xffffff800cbe4a87
    0xffffff80a74dbe10 : 0xffffff800cb33f8c
    0xffffff80a74dbe40 : 0xffffff800cb18a93
    0xffffff80a74dbe90 : 0xffffff800cb293bd
    0xffffff80a74dbf10 : 0xffffff800cc059fa
    0xffffff80a74dbfb0 : 0xffffff800cc36ea6
    Kernel Extensions in backtrace:
    com.apple.driver.AppleIntelHD3000Graphics(10.0)[BF767242-858E-3203-9CB4-AD9F54B1 E6E3]@0xffffff7f8ed71000->0xffffff7f8edd7fff
    dependency: com.apple.iokit.IOPCIFamily(2.9)[56AD16B5-4F29-3F74-93E7-D492B3966DE2]@0xffffff 7f8d324000
    dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[619F6C9F-0461-3BA1-A75F-53BB0F87ACD3]@0 xffffff7f8dc07000
    BSD process name corresponding to current thread: Preview
    Mac OS version:
    14C109
    Kernel version:
    Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64
    Kernel UUID: DCF5C2D5-16AE-37F5-B2BE-ED127048DFF5
    Kernel slide:
    0x000000000c800000
    Kernel text base: 0xffffff800ca00000
    __HIB  text base: 0xffffff800c900000
    System model name: MacBookPro8,1 (Mac-94245B3640C91C81)
    System uptime in nanoseconds: 145101817870
    last loaded kext at 75192703697: org.virtualbox.kext.VBoxNetAdp    4.3.18 (addr 0xffffff7f8f29f000, size 28672)
    loaded kexts:
    org.virtualbox.kext.VBoxNetAdp    4.3.18
    org.virtualbox.kext.VBoxNetFlt    4.3.18
    org.virtualbox.kext.VBoxUSB    4.3.18
    org.virtualbox.kext.VBoxDrv    4.3.18
    com.apple.driver.AudioAUUC    1.70
    com.apple.driver.AppleHWSensor    1.9.5d0
    com.apple.driver.AppleTyMCEDriver    1.0.2d2
    com.apple.driver.AGPM    100.15.5
    com.apple.filesystems.autofs    3.0
    com.apple.iokit.IOBluetoothSerialManager    4.3.2f6
    com.apple.driver.AppleOSXWatchdog    1
    com.apple.driver.AppleMikeyHIDDriver    124
    com.apple.driver.AppleHDAHardwareConfigDriver    269.25
    com.apple.driver.AppleHDA    269.25
    com.apple.driver.AppleMikeyDriver    269.25
    com.apple.iokit.IOUserEthernet    1.0.1
    com.apple.driver.AppleUpstreamUserClient    3.6.1
    com.apple.driver.ApplePolicyControl    3.8.6
    com.apple.iokit.IOBluetoothUSBDFU    4.3.2f6
    com.apple.Dont_Steal_Mac_OS_X    7.0.0
    com.apple.driver.AppleHWAccess    1
    com.apple.driver.AppleHV    1
    com.apple.driver.AppleLPC    1.7.3
    com.apple.driver.ACPI_SMC_PlatformPlugin    1.0.0
    com.apple.driver.AppleThunderboltIP    2.0.2
    com.apple.driver.AppleIntelHD3000Graphics    10.0.0
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport    4.3.2f6
    com.apple.driver.AppleSMCLMU    2.0.7d0
    com.apple.driver.AppleMuxControl    3.8.6
    com.apple.driver.AppleIntelSNBGraphicsFB    10.0.0
    com.apple.driver.SMCMotionSensor    3.0.4d1
    com.apple.driver.AppleSMCPDRC    1.0.0
    com.apple.driver.AppleBacklight    170.5.0
    com.apple.driver.AppleMCCSControl    1.2.11
    com.apple.driver.AppleUSBTCButtons    240.2
    com.apple.driver.AppleUSBTCKeyEventDriver    240.2
    com.apple.driver.AppleUSBTCKeyboard    240.2
    com.apple.driver.CoreStorageFsck    471.10.6
    com.apple.driver.AppleIRController    327.5
    com.apple.driver.AppleFileSystemDriver    3.0.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless    1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib    1.0.0d1
    com.apple.BootCache    35
    com.apple.iokit.SCSITaskUserClient    3.7.3
    com.apple.driver.XsanFilter    404
    com.apple.driver.AppleUSBHub    705.4.2
    com.apple.iokit.IOAHCIBlockStorage    2.7.0
    com.apple.driver.AppleSDXC    1.6.5
    com.apple.driver.AirPort.Brcm4331    800.20.24
    com.apple.iokit.AppleBCM5701Ethernet    10.1.3
    com.apple.driver.AppleFWOHCI    5.5.2
    com.apple.driver.AirPort.Brcm4360    910.26.12
    com.apple.driver.AppleUSBUHCI    656.4.1
    com.apple.driver.AppleUSBEHCI    705.4.14
    com.apple.driver.AppleAHCIPort    3.1.0
    com.apple.driver.AppleRTC    2.0
    com.apple.driver.AppleSmartBatteryManager    161.0.0
    com.apple.driver.AppleACPIButtons    3.1
    com.apple.driver.AppleHPET    1.8
    com.apple.driver.AppleSMBIOS    2.1
    com.apple.driver.AppleACPIEC    3.1
    com.apple.driver.AppleAPIC    1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient    218.0.0
    com.apple.nke.applicationfirewall    161
    com.apple.security.quarantine    3
    com.apple.security.TMSafetyNet    8
    com.apple.driver.AppleIntelCPUPowerManagement    218.0.0
    com.apple.AppleGraphicsDeviceControl    3.8.6
    com.apple.kext.triggers    1.0
    com.apple.iokit.IOSerialFamily    11
    com.apple.driver.DspFuncLib    269.25
    com.apple.kext.OSvKernDSPLib    1.15
    com.apple.iokit.IOSurface    97
    com.apple.driver.AppleHDAController    269.25
    com.apple.iokit.IOHDAFamily    269.25
    com.apple.iokit.IOAudioFamily    203.3
    com.apple.vecLib.kext    1.2.0
    com.apple.driver.AppleSMBusPCI    1.0.12d1
    com.apple.driver.IOPlatformPluginLegacy    1.0.0
    com.apple.driver.AppleThunderboltEDMSink    4.0.2
    com.apple.driver.AppleThunderboltDPOutAdapter    4.0.6
    com.apple.iokit.IOBluetoothHostControllerUSBTransport    4.3.2f6
    com.apple.iokit.IOBluetoothFamily    4.3.2f6
    com.apple.iokit.IOFireWireIP    2.2.6
    com.apple.driver.AppleGraphicsControl    3.8.6
    com.apple.driver.AppleSMC    3.1.9
    com.apple.driver.IOPlatformPluginFamily    5.8.1d38
    com.apple.iokit.IOUSBUserClient    705.4.0
    com.apple.driver.AppleBacklightExpert    1.1.0
    com.apple.iokit.IONDRVSupport    2.4.1
    com.apple.driver.AppleSMBusController    1.0.13d1
    com.apple.iokit.IOGraphicsFamily    2.4.1
    com.apple.driver.AppleUSBMultitouch    245.2
    com.apple.iokit.IOUSBHIDDriver    705.4.0
    com.apple.driver.CoreStorage    471.10.6
    com.apple.driver.AppleUSBMergeNub    705.4.0
    com.apple.driver.AppleUSBComposite    705.4.9
    com.apple.iokit.IOSCSIMultimediaCommandsDevice    3.7.3
    com.apple.iokit.IOBDStorageFamily    1.7
    com.apple.iokit.IODVDStorageFamily    1.7.1
    com.apple.iokit.IOCDStorageFamily    1.7.1
    com.apple.driver.AppleThunderboltDPInAdapter    4.0.6
    com.apple.driver.AppleThunderboltDPAdapterFamily    4.0.6
    com.apple.driver.AppleThunderboltPCIDownAdapter    2.0.2
    com.apple.driver.AppleThunderboltNHI    3.1.7
    com.apple.iokit.IOThunderboltFamily    4.2.1
    com.apple.iokit.IOAHCISerialATAPI    2.6.1
    com.apple.iokit.IOSCSIArchitectureModelFamily    3.7.3
    com.apple.iokit.IOEthernetAVBController    1.0.3b3
    com.apple.iokit.IOFireWireFamily    4.5.6
    com.apple.iokit.IO80211Family    710.55
    com.apple.driver.mDNSOffloadUserClient    1.0.1b8
    com.apple.iokit.IONetworkingFamily    3.2
    com.apple.iokit.IOUSBFamily    710.4.14
    com.apple.iokit.IOAHCIFamily    2.7.5
    com.apple.driver.AppleEFINVRAM    2.0
    com.apple.driver.AppleEFIRuntime    2.0
    com.apple.iokit.IOHIDFamily    2.0.0
    com.apple.iokit.IOSMBusFamily    1.1
    com.apple.security.sandbox    300.0
    com.apple.kext.AppleMatch    1.0.0d1
    com.apple.driver.AppleKeyStore    2
    com.apple.driver.AppleMobileFileIntegrity    1.0.5
    com.apple.driver.AppleCredentialManager    1.0
    com.apple.driver.DiskImages    396
    com.apple.iokit.IOStorageFamily    2.0
    com.apple.iokit.IOReportFamily    31
    com.apple.driver.AppleFDEKeyStore    28.30
    com.apple.driver.AppleACPIPlatform    3.1
    com.apple.iokit.IOPCIFamily    2.9
    com.apple.iokit.IOACPIFamily    1.4
    com.apple.kec.corecrypto    1.0
    com.apple.kec.Libm    1
    com.apple.kec.pthread    1

    The panics are probably caused either by a bug in OS X or by a hardware fault, but you should rule out "VirtualBox" as a suspect by uninstalling it completely.
    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • Filename when dl PDF Blobs

    I have an APEX app that stores PDFs and RTF file in my DB as BLOBS. Users click on links and download these files. I use a DB procedure to build the http header for dl of the blob. (I think I got it from the APEX help section).
    Everything works except for the file name of the PDF blobs. I still get the file but the file name is always the name of my DB schema.pdf. The filename var is set correctly in the DB, same datatype as the RTF file.
    Same results if you left or right -> save target as click. RTF works. PDF works but odd filename.
    As anyone heard of an issue like this? Thanks for any help.
    Here are my two procedures:
    PDF (filename problem is here)
    create or replace PROCEDURE download_contractpdf(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
         -- Assuming your application's numeric ID is 122, set g_flow_id to
         -- that value, otherwise change the value as required.
         HTMLDB_APPLICATION.G_FLOW_ID := 122;
         IF NOT wwv_flow_custom_auth_std.is_session_valid then
         -- display this message or a custom message.
         htp.p('Unauthorized access - file will not be retrieved.');
         -- You can do whatever else you need to here to log the
         -- unauthorized access attempt, get the requestor's
         -- IP address, send email, etc.
         RETURN;
         END IF;
    SELECT 'application/pdf', PDFFILE, PDFFILENAME,DBMS_LOB.GETLENGTH(PDFFILE)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM ES_GENERATION_Q_STAFFAUG
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the PDFFILENAME will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; PDFFILENAME="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_contractpdf;
    RTF (this works)
    create or replace PROCEDURE download_contractrtf(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
         -- Assuming your application's numeric ID is 122, set g_flow_id to
         -- that value, otherwise change the value as required.
         HTMLDB_APPLICATION.G_FLOW_ID := 122;
         IF NOT wwv_flow_custom_auth_std.is_session_valid then
         -- display this message or a custom message.
         htp.p('Unauthorized access - file will not be retrieved.');
         -- You can do whatever else you need to here to log the
         -- unauthorized access attempt, get the requestor's
         -- IP address, send email, etc.
         RETURN;
         END IF;
    SELECT 'application/msword', RTFFILE, RTFFILENAME,DBMS_LOB.GETLENGTH(RTFFILE)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM ES_GENERATION_Q_STAFFAUG
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_contractrtf;

    Hi Regis,
    You have put this thread as answered.
    I have the same problem, can you tell me how you fixed this problem?
    thanks!
    KR,
    Micha

  • Why does the text in text boxes go invisible when annotating PDFs in preview?

    If I hover my mouse over where the text box is, the little yellow box that tells you what text is there comes up and shows what the box is supposed to say, but the text is invisible. If I double click the area where the text is supposed to be, it highlights and makes the text visible again. Its not that the text is white, because if i drag it over a dark area, it still doesn't show up. This happens when I open it up again after annotating and saving/closing it. I attached pictures of my cursor hovering over the invisible text box, and one of it hovering over an unaffected text box, for comparison. This has happened to me before. What is happening and how do i stop it?

    david302 wrote:
    But, about half the time, when i am finished typing and click out of the box, back to view the result, the text does not appear. If i go back to Edit Content within the box, it is there, but disappears when i exit the box. It does not print when i print a test sheet.
    The fact that 'about half the time' you are seeing this issue and presumably not the other part of the time, I would suggest trying to run the 'Repair Database' option in the First Aid dialog:
    Quit Aperture > press and hold Option + Command keys while launching Aperture > select and run the 'Repair Database' option.
    Post back as needed.

  • Preview Encrypt PDF - Really Secure?

    When you use the Preview app in OS X to encrypt a PDF is it really secure?
    I haven't been able to find anything about the level of encryption used by Preview in OS X. What type of encryption does Preview use (40-bit, 128-bit)?
    A quick search of the web and there are several products that claim they can remove the passwords from PDF files. If these work why would anyone consider encrypted PDF's secure?

    Preview
    CVE-ID: CVE-2008-0994
    Available for: Mac OS X v10.5.2, Mac OS X Server v10.5.2
    Impact: Saving to encrypted PDF in Preview produces files that may be read without the password
    Description: When Preview saves a PDF file with encryption, it uses 40-bit RC4. This encryption algorithm may be broken with significant but readily available computing power. A person with access to the file may apply a brute-force technique to view it. This update enhances the encryption to 128-bit RC4.
    About Security Update 2008-002

  • How to preserve original size when converting to PDF in Preview.

    I'm using Preview in Snow Leopard.
    Trying to create multipage PDFs from document scans.
    I'm finding that when the scanned image (tiff, png, jpg) is converted to PDF in Preview the size reduces.
    Selecting 'View actual size' shows the image with sometimes drastically impaired quality.
    This does not always happen. I have some images that stay the same size and quality.
    What factors cause this reduction in size in some images but not in others?
    I'm not sure but this could be only images that have been scanned by me. If so, what do I need to do to prevent the problem?
    These are not large images, just standard size pages.
    I have all the preferences to view at 100%
    This is not for printing, only for viewing on-screen.

    Please!!
    I'm not silly...
    As I said, selecting View actual size shows the image with sometimes drastically impaired quality (regardless of the window size).
    I also said I have preferences set to view at 100%
    It now seems as if this is only happening with scans I've made here.
    Images downloaded from the internet are converting indentically, no problem. But my scans are being resized when converting.
    I wonder if anyone with a bit of technical know-how can give me some clues as to why this is happening. It would seem to be something to do with the file itself.
    (There was another post on here with the same problem but for some reason its been 'archived' though the last posting was this month and the query was not answered. So I've posted the question again.)

  • Hiding filenames when combining multiple files into a single .pdf

    I'm fairly new to this Acrobat X. I'm trying to assemble my portfolio to distribute to employers but I cannot seem to get rid/hide the filenames in the final pdf file. I was using the option to 'combine multiple files into a single pdf' because I was compiling images and documents to a single readable pdf file. I got all that done but once I open it, I'd see that each page would still contain the original file names rather than page numbers - which I prefer not to have employers see for the sake of tidiness (and I refuse to use the Adobe portfolio because it's not really efficient on space or design. I prefer a simple page-by-page pdf). So I was wondering if anyone can tell me how to hide my file names, change them into page numbers or getting rid of them all together so the 'Table of Contents' in the pdf preview mode would not show anything, I would really much appreciate it.
    -Ss

    Well, when the .pdf is in the final, deliverable form; I open it in Mac preview mode and the sidebar is always extended showing a 'table of contents' rather than having each document in the pdf file have a number designating a page name, it shows each individual filename the pdf is composed of. Not too sure about bookmark, though. Thanks for the reply!
    If you want, I can send the file to you.

  • Preserving links when printing to PDF?

    I am looking for a way to preserve links when printing a web page to PDF.
    I've tried using the Print... PDF... Print to PDF command, using tried various browsers (Firefox, Safari, Camino) and various PDF readers (Acrobat 7, Acrobat Reader, Preview), and cannot find any combination that preserves the link, where one can click on a link in the saved PDF and go to the link's web address. The PDF displays a blue underlined text for the link, but Acrobat 7 confirms that there is no link attached to the text.
    Any suggestions? I saw another post on this topic, but the answer was specific to Preview.
    The only alternative I can think of is saving as a web page, but I would prefer to save as PDF.
    Thank you...

    If you own a copy of Acrobat 7 (not clear from your posting), use the, "Create PDF" button to select, "From Web Page," enter the url and press "Create." The links will work, and you can set the number of levels back from the original links that you want the addtional links to work.
    Note: "Acrobat Reader" doesn't exist anymore, it's been "Adobe Reader" for a couple of years now.

  • Saving location when multiple open PDFs in Preview

    Does anyone know why this still isn't fixed in Mavericks: https://discussions.apple.com/thread/3767674 ?
    Quote
    I mostly use Preview.app (on Lion 10.7.3) to read and annotate relatively large pdf documents (articles, reports, etc.). While working on a given project I tend to have many pdf files open at the same time. I personally would like to have all of the pdfs I use open in a single window, so I have Preview set to "Open all files in one window" (Preferences > General). This setup initially worked very well since it allows me view all of my open documents in the sidebar (similar to tabs in a browser window). The problem is that when I switch from one pdf to another, the position of the pdfs (i.e., the page I was on when I switched to another pdf) is not preserved. This seemingly defeats the purpose of having this functionality in Preview, so I have a few questions I'm hoping someone can help me with.
    First, is this the intended behavior of this setting, or is this a bug? In either case, is anyone aware of a fix for this? I just want the documents I'm reading to preserve their positions when switching between them when opened in a single window
    Really really frustrating!!

    Not sure why you prefer to open the PDF outside of
    Safari?
    i think it's more convenient:
    Acrobat is too slow; and when viewing PDFs inside Safari i don't have all the nice keyboard shortcuts for zooming, flipping pages, copying stuff from the PDF is not as smooth, etc. It's just the overall look-and-feel that's much nicer in Preview, IMHO.
    Anyway, I guess you're saying Preview does not open
    after the PDF download.
    Yes, that's what i meant.
    Have you tried accessing the
    info panel for one of the PDF files and changing the
    "open with" selection to "Preview" - then, "change
    all"?
    Now i am not quite sure what you mean.
    In Finder, when i double-click a PDF it opens fine in Preview.
    Also, in the info panel, Preview is set for the "open with" for all and any PDF.
    Best regards,
    Gabriel.

  • When i print a pdf from preview it prints strange characters - it looks fine on screen

    when i print a pdf from preview it prints strange characters - it looks fine on screen

    You can also try opening the PDF with preview, then doing a copy and paste to TextEdit and printing from there.
    Adobe makes it easier, but you do have software to accomplish this.
    Only download Adobe reader from this site, to avoid "fakes/spoofs/malware" that will cause damage to your machine.
    http://www.adobe.com/support/downloads/product.jsp?platform=macintosh&product=10
    Hope this helps

Maybe you are looking for

  • Adobe Flash CS3 detected a problem and has to be closed.

    Hello, I'm using Flash CS3 for a month, but the problem is that since a week ago, flash CS3 stops working after 5 minutes of use. So today I've downloaded the test version (30 days) in another PC, but even with this other computer the software doesn'

  • Captivate 3 publish as Flash no swf files in folder

    My colleague created a Captivate 3 file with audio voice over. After publishing to Flash file, the View output button was grayed out and no files in the output folder. Please help.

  • OEM issue with RMAN

    Hil, OEM made RMAN work strangely. In OEM, after I set some configuration in the "Backup Settings", I found that "Tape Drives" filed is automatically filled with the value: "1". I tested the issue on may machines and the result was the same. Steps to

  • Keep getting  error 150:30

    Hi, Still keep getting  error 150:30. I use win7 64bit. I'd appreciate any ideas how to fix? Cheers Gordon

  • How request the service URL automatically?

    Hi, Everyone, How can I let the 79** serials phone auto request the service URL without user press the 'Services' button? (Except using 'IDLE & IDLE Timeout') BTW, base on this idea, i'm try to using the push2phone application (ASP) which is in Cisco