Sometimes PDDocSaveWithParams does not change PDF version

Hi,
In a plug-in we are changing document properties like, Initial view, Page layout, Fast web view, pdf version etc, it is working fine most of the time, But for some documents it is not changing version backwards i mean, if the original file version is 1.5, it can change to 1.6 but does not changing to 1.4, why it is happening so, where could be the problem?
part of that code is given below for your reference
PDDocGetVersion( pdDoc, &asiMajor, &asiMinor );
asiMajor = 1;
asiMinor = 4;
PDDocSaveParamsRec pdDocSaveParams;
ProgressMonitorRec pMonitor;
pdDocSaveParams.saveFlags=PDSaveLinearized|PDSaveFullPDSaveCollectGarbage ;
pdDocSaveParams.newPath= asPath;
pdDocSaveParams.fileSys=ASGetDefaultFileSys();
pdDocSaveParams.mon=NULL;
pdDocSaveParams.monClientData=NULL;
pdDocSaveParams.cancelProc=NULL;
pdDocSaveParams.cancelProcClientData=NULL;
pdDocSaveParams.major=asiMajor;
pdDocSaveParams.minor=asiMinor;
PDDocSaveWithParams(pdDoc,&pdDocSaveParams);

You can do it like this:
_t_PDDocSaveParams sp;
memset(&sp,0,sizeof(_t_PDDocSaveParams));
sp.size = sizeof(_t_PDDocSaveParams);
sp.saveFlags = PDSaveFull;
sp.major = 1;
sp.minor = 4;
sp.newPath = [some pathName];
sp.saveFlags2 = PDSaveUncompressed; // <------ This will do the trick!
PDDocSaveWithParams([your pdDcoc], &sp);
This was tested with the SDK of Acrobat 9

Similar Messages

  • PDDocSaveWithParams does not change PDF version from 1.8 (Acrobat 9, Acrobat X) to 1.4

    Dear all,
    this post seems similar to this discussion:
    http://forums.adobe.com/message/1160826#1160826
    but it is not.
    Our customers prepare documents to be presented at regulatory  authorities, and it is required that these documents have PDF Version  1.4, are linearized, etc. In a plug-in we change the document properties accordingly. This used to work fine with Acrobat versions from 6 to 9. Then came Acrobat X.
    We detected the problem with a document created with Acrobat PDFMaker 10.0 for Word: a very simple 1-page 3-lines document with no Acrobat X features.
    When using Acrobat X, after calling PDDocSaveWithParams, the PDF version was not changed as required. (We check this calling PDDocGetVersion from the plugin after saving.)
    Doing the same conversion with Acrobat 9 seemed to be OK: PDDocGetVersion reported PDF Version 1.4.
    But when opening the converted document in Acrobat X, it still reported "PDF Version: 1.7 Extension Level 8 (Acrobat X.x)".
    Opening it in a text editor showed that the header was "%PDF-1.4", but it still had "<</Extensions<</ADBE<</BaseVersion/1.7/ExtensionLevel 8>>>>..."
    With Acrobat 8 and below, the version could not be downgraded, but this was reported correctly.
    Downgrading the version directly via the "Optimize" function of Acrobat X worked.
    I could not test Acrobat 9, since I have no Professional version available.
    In Acrobat 8 Prof, I saw the message "This file appears to use a new format that this version of Acrobat does not support.", and the "Optimize" function was disabled.
    Now I have the following questions:
    (1) Is it a known problem that PDDocSaveWithParams does not downgrade the version with Acrobat X ?
    (2) Is it a known problem that PDDocSaveWithParams does not downgrade correctly with Acrobat 9 ?
    (3) Is it a known problem that Acrobat9 wrongly reports the PDF Version of the document, in this case ?
    (4) Why is downgrading (or optimizing) disabled for Acrobat 8 and below ?
    Thank you !

    Remember that as of PDF 1.4, the version number in the PDF header can be overridden via a /Version key in the /Catalog dictionary.  In addition, the presence of an /Extension dictionary (ISO 32000-1) will also override the header version. 
    The header version is JUST A HINT - it is NOT a guarantee of any sort.
    Based on both of the above, neither of your "bugs" are bugs. 
    Acrobat 9 (and I assume X as well) are reporting correctly. If you have a PDF that you believe IS being reported incorrectly, please post! 
    If the Extensions dict is present, the Save command will NOT override it since it takes precedence.

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • Cursor does not change to a circle when using eraser

    Cursor does not change to a circle when using the eraser.
    I'm sure it must be a tick box somewhere.
    Its always been ok previously.

    I had this same problem and was searching for answers. I also prefer using a circle instead of crosshairs. I hope you've figured it out by now, but, if you haven't, here is the answer (I am using Elements 9, but, it should work for other versions I think):
    1. Open up Elements Editor, Click on Edit, Click on Preferences, Click on Display & Cursors.
    2. Under Painting Cursors, select Full Size Brush Tip
    3. (optional) - if you want crosshairs within your circle, then also select Show Crosshair in Brush Tip.
    4. Click ok.
    Now use the brush, and it should have a circle to use.
    P.S. Sometimes if you have your Caps Lock key on, that removes the circle as well.

  • Why the mouse pointer in Logic Pro does not change shape during work in OSX 10.9.1?

    I've a MacBook Pro Retina 15-inch Late 2013 and I'm using two external displays. One connected to to the HDMI port (display 1) the other to thunderbolt (display 2). The MacBook display is closed. I’m working with Logic Pro 9.1.8 (32bit) with OSX 10.9.1
    Why the mouse pointer in Logic Pro does not change shape during work???
    It was already difficult with OSX 10.9 but now after upgrading to 10.9.1 it's game over!
    At least before I could select which display use Logic Pro to have all the shape functions of the pointer. Not in both displays, so to be forced to edit in ONLY ONE of the two displays using this workaround: (right click on Logic icon in Dock: Option --> Desktop on Display 1). Now or I select “Option --> All Desktops” or does not work. However, by selecting all displays you say goodbye to Mission Control. This can’t be a solution!!!
    The amazing thing is that Nuendo has no problem while Logic Pro, Apple's native software, it can't!
    With Nuendo it’s indifferent in which display you are working, the shape of the mouse pointer changes shape depending on the requirement in both displays.
    This thing drives me crazy!
    Solutions?
    Here some ideas in other foums:
    http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=86264
    But this aren't really solutions but workarounds. Use Logic in all desktops makes Mission Control useless!!

    I installed all over again by formatting as suggested by the genes of pro application support. Each plug-in, each virtual instrument, a job that lasted 3 days. And as suggested for each new plug-in I proceeded to check the proper functioning of Logic Pro and did each time a back up with Time Machine.
    The Result:
    Logic works as it should ONLY on the primary monitor and ONLY on the first desktop.
    BUT
    Reason and Nuendo dont' have this issue !!
    I believe that Apple developers are thinking only to mobile phones and things like messages or face time.
    And that's not all!
    After a few weeks, perhaps by installing a version of Adobe Acrobat, I say maybe because I'm not sure, logic has stopped working properly. Again problems with the mouse pointer.
    Luckily I had a back up! But now I'm terrified to install new programs. Thanks Apple!

  • SAFARI DOES NOT DISPLAY PDF DOCS.

    Does anyone know why my Safari browser suddenly does not show PDF docs in the browser window? It used to. I use Version 2.04. A message does appear that says "plug-in cancelled". I don't know why.
    Acrobat opens it in Firefox fine, but nothing happens in Safari. I prefer Safari for viewing PDFs online because it is more convenient than having Acrobat start up and drop files on my hard drive. Any help would be greatly appreciated. Thanks very much.
    Mike

    Hi,
    I prefer Safari for viewing PDFs online because it is more convenient than having Acrobat start up and drop files on my hard drive. Any help would be greatly appreciated. Thanks very much.
    Hmm yes i can relate much better then launching adobe, for my needs.
    Go to System preferences-> Quick time preferences->Advanced tab
    see the -> MIME settings, click the button,
    Images: click to expand the list, make sure PDF is not selected.
    Let me know if this helps any?
    Eme '~[)

  • Oracle form query mode does not change color to blue

    Hi, I have created a custom form and using query mode in it. However on hitting F11, the record does not change to blue, instead it turns white. Can someone please guide me as to what I should be doing to get this right?
    Thanks for your responses.

    The fact that it doesn't change color when you "Enter Query" mode tells me your Custom Form does not conform to Oracle Application Programming Standards. I recommend you visit the Oracle Applications Documentation web site, choose your EBS version and scroll down and look at the Oracle Applications User Interface Standards for Forms-Based Products and Oracle Applications Developer's Guide to ensure your Custom Form conforms to Oracle Standard.
    Also, I suggest you always use the TEMPLATE.fmb (or if you can't find this form, use the APPSTAND.fmb) as the starting point of any Custom Form. This will ensure you have the minimum required objects and code in your form.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.

  • Mobileme does not upload final version of my imovie

    I am publishing my imovie project in my Mobileme gallery and for some reason, Mobileme does not use the version that I see in my project area (the final version). Any idea how I can fix this? I only have one version of my project so I am not sure what is happening...

    Hi, thanks for answering so quickly.
    What I notice is that the version of the movie on the mobileme site does not incorporate some of the very last changes I made to the film-re organizing the text in various titles.
    I am not sure what you mean by workflow-sorry?

  • Unexpected error;Primary key does not exist:CmscdomPK version=2,name=J2E

    Hi I am getting the following error when i try to access the CMS related WebDynpro application.
    First time i am able to access the CMS.I created the domain and track.after that i edited the Domain tab with new domain name J2E.During that time i tried to save the domain,its throughing the Primary key does n't exist error.I closed the application.Again when i tried to access the CMS.Its throughing the following error.
    <b>Error stacktrace:
    com.sap.tc.webdynpro.progmodel.controller.MessageManager$AbortMessageManagerException: Unexpected error; inform your system administrator - Primary key does not exist: CmscdomPK version=2,name=J2E
         at com.sap.tc.webdynpro.progmodel.controller.MessageManager.raiseMessageInternal(MessageManager.java:254)
         at com.sap.tc.webdynpro.progmodel.controller.MessageManager.raiseMessage(MessageManager.java:964)
         at com.sap.cms.ui.wl.Custom1.hasTracks(Custom1.java:860)
         at com.sap.cms.ui.wl.Custom1.wdDoInit(Custom1.java:277)
         at com.sap.cms.ui.wl.wdp.InternalCustom1.wdDoInit(InternalCustom1.java:990)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doInit(DelegatingCustomController.java:73)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:436)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:374)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:403)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.initAttributeMapping(AttributeInfo.java:596)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:456)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:373)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:252)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)</b>
    What causing the problem.I am not finding the way,where can i rectifything problem
    Regards
    Usman

    Hi Usman,
    Domain ID and CMS Server ID are also stored in the SLD when you create these for the first time. As of now you can just create one Domain and One CMS Server id.
    If you have to edit it you may have to do the following.
    1. Delete all the tracks under the domain id and the CMS server id.
    2. Then in SLD. go to HOME -> CONTENT BROWSER -> SUBSET = LANDSCAPE DESCRIPTION
    In the CLASS dropdown please select Change Management Domain. Select the domain that you had created and delete it.
    Again in the CLASS dropdown select Change management Server. Select it and delete.
    Note: Please ensure that all the tracks have been deleted before you delete SLD entries.
    Now login to CMS again and create the Domain and CMS server again.
    If possible please try this some where on a test machine if possible and then try in actual scenario.
    Hope this helps.
    Regards
    Sidharth

  • GP Card manager Key does not changed..

    hi all..
    I have a jcop card and I want to change the GP Caard Manager Key from Static 40~4F to 30~3F.
    Now the key version is 01.
    Like below..I succeed putkey cmd, but the key does not changed..
    What is the probem???
    [Power On - Gemplus USB Smart Card Reader 0]
    ATR : 3B 69 00 00 4A 43 4F 50 33 31 56 32 32
    [APDU - Gemplus USB Smart Card Reader 0]
    00 A4 04 00 08 A0 00 00 00 03 00 00 00 << 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65
    01 FF 9F 6E 06 47 91 73 51 2E 00 73 4A 06 07 2A
    86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B
    02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64
    0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09
    2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01
    04 01 2A 02 6E 01 02 90 00
    172ms
    [APDU - Gemplus USB Smart Card Reader 0]
    80 50 00 00 08 00 00 00 00 00 00 00 00 << 00 00 93 02 04 37 90 91 54 50 01 02 00 2C BE 39
    5E A5 07 55 D3 74 FF 65 DA B6 1C 0E 90 00
    125ms
    [APDU - Gemplus USB Smart Card Reader 0]
    84 82 00 00 10 78 E9 4A 72 8C 8A 58 C2 9C 60 70 A3 C9 F2 93 48
    << 90 00
    78ms
    [APDU - Gemplus USB Smart Card Reader 0]
    80 D8 01 81 43 00 80 10 D3 DD 37 F4 45 C0 EB C8 20 A9 7F 43 FB D6 61 A8 03 B7 3D 56 80 10 D3 DD
    37 F4 45 C0 EB C8 20 A9 7F 43 FB D6 61 A8 03 B7
    3D 56 80 10 D3 DD 37 F4 45 C0 EB C8 20 A9 7F 43
    FB D6 61 A8 03 B7 3D 56
    << 01 B7 3D 56 B7 3D 56 B7 3D 56 90 00
    203ms

    The only way that OneKey would be restored in your situation is by having Lenovo reimage your hard drive. Assuming they will do it under warranty. Once you repartition drive "C", you lose all functionality of OneKey partition. I was going to suggest that you extract the recovery image from the hidden partition but even that will be useless because the image was set up for the original partition setup.
    An alternative, is to use an OEM Windows XP [Greek] to install with the COA on the netbook, install the drivers and software that was preinstalled [from Lenovo] and create a recovery cd/dvd using OneKey 6.0 and VirtualCD.
    ***VirtualCD is a program that allows you to burn CDs and DVDs using a virtual CD/DVD writer.
    Message Edited by ortegaluis on 01-15-2009 09:13 AM
    \\ I do not respond to PM regarding individual tech support. Keep discussions in the forum for the benefit of others //

  • Changing cell padding does not change margin

    The text in the cell of an existing table is clearly indented from the cell border.   However, the cell padding is set to 0.  When I change the cell padding to 10, 50, or any other number, the text margin does not change.
    I am trying to create another table.  The text in the new table is flush left.  Whatever I set the cell padding to, the text margin does not change.
    The documentation indicates that the only way to change the cell margins is to change cell padding.  Obviously that does not work.  How do I change the cell padding?
    Thank you.
    Cathy

    Can you please anwser couple of queries to nail down the issue?
    1) Please let us know the Contribute Version and OS you are using.
    2) Is this happening with a particular page?
    3) Can you try creating a new blank page, insert a table and modify the Cell Padding value.Check whether it is getting reflected and also verify the cell padding parameter is added in the code.
    4) Previously if it worked and broken suddently, please try clearing the Contribute preference. Refer to the blog post, blogs.adobe.com/contribute/2011/11/launch-contribute-freshly-by-deleting-preferences.html

  • Tool cursor does not change or does not show up

    If you change tools in Photoshop but the cursor does not change (or disappears entirely), this indicates a bug in your video card driver. To fix it, you need to update your video card driver.
    Sometimes you can fix it temporarily by turning down the hardware or driver acceleration in the properties panel for the video card.

    Chris Cox 11/23/02 4:59pm

  • Cursor does not change over links in flash since the upgrade to firefox4

    Pointer does not change to a hand when hovering over a link in flash using the firefox4 update.

    Works fine for me in version 1.4.2.
    Read this link on [url http://www.physci.org/codes/sscce.jsp]Creating a Short Demo Program, if you need further help.

  • Cursor does not change during the editing of clips

    Hi. I am new to iMovie and am looking for some help. I have imported my clips, put them in my timeline and I want to shorten the clips. According to the movie that is on the Apple web site, when moving my cursor over the line separating my clips, my cursor is to 'change' allowing me to shorten the clip. Well, my cursor does not change. Is there a setting that needs to be corrected. Thanks for any help that can be offered.

    Hi konrad - the View Menu DOES have a 'Show Clip Volume Levels" IF you are using iMovie HD!
    But according to your Profile you have iMovie 4. Volume control in that version is at the bottom beneath the Timeline Audio tracks.
    Hope this helps clear up your confusion.
    Better to use the iMovie 4 forum in your case!:-)

  • Selection tool. now it does not change sizes

    Just installed the 14.1 Illustrator and realized that the selection tool (black arrow) does not change size of shapes / paths any more. I thought that there would be control in Preferences or View to activate it, but I have not been able to find it.  Please help find it.

    st,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks).
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

Maybe you are looking for