What are the requirements of a good use of PDSElementInsertMCAsKid()?

I struggled all day. Friday, I had to work code which merges the content of several PDF pages into a single page in a new PDF document. Optional content data and the object have been preserved. However, I had to create my own optional content around each ingested page and delete any existing option contained in the pages of the source. Some refactoring took place, and now I have the code that does everything that I do, except that PDSElementInsertMCAsKid() errors with a message on the search for an incorrect structure in the PDF file. If I comment on this call, I get a PDF file with a correct structure tree except being not connected in the content stream. So how could I have botched it upward?

Before I was replicating everything in the content source stream in the content of the destination stream. Now I create a container of optional and content for each ingested PDF page content. After you create the container, I cross the stream of source content. When a container of optional content is encountered the container is ignored and contained items are added directly to the content of the destination stream. If one of those containing elements is a container of object data a new container and new content is created. A PDSElement is created and initialized from the source PDSElement and added to the destination tree. I don't think that there was no modification of the data object code, to the way I am handling content optional.

I would like any ideas or information on the operation PDSElementInsertMCAsKid() that someone has.

TIA,

Alan

I found that the error does not occur if the code creates a new PDDoc and PDPage as the target of the merge operation instead of using a PDF target. For my workflow, it is an acceptable solution.

So apparently something on the State of the target PDF or its page causes the error. Perhaps PDFL merges somehow. The target PDF that was used was a blank PDF template. PDDocRemoveStructTreeRoot(), PDDocFlattenOC(), and PDPageRemoveCosContents() before you start using the merger did not affect the result. Fusion, this PDF as the first in the sequence works fine too.

Tags: Acrobat

Similar Questions

  • What are the requirements of optimal hardware for Adobe Photoshop CS6 specification?

    I greet the staff and users of this forum,

    As the title makes clear, the issue is "What are the requirements to the optimal hardware for Adobe Photoshop CS6 specification".
    Unfortunately, I am not satisfied with the specifications indicated on the site, because I think that they are much less important than the specifications needed to run the program to its full potential. This belief comes from my experience with the Adobe Photoshop CS2 product that I currently run on my computer. Indeed, Ps CS2 can not fully execute without causing shifts in time on my computer (i.e. when using smudge diameter of 500 pix / help to liquefy Gallery), even though my characteristics are already higher than those specified for the CS6 (mine are: Intel Core 2 Duo 6300 1.86 GHz, 3 GB RAM). I can assure you that I receive these shifts in the time almost in SafeMode (only key running system processes) and that my computer is clean of any virus/process that could reduce its performance.

    I lived two forums and four telephone operators to always get the same answer: the specs on the website.
    If any user here could give me a more accurate record, I would be really grateful.

    Thank you
    phdwengr

    This paper looks at the different workflow and gives recommendations. It should give you an idea of what is needed.

    http://blogs.Adobe.com/jnack/files/2012/07/CS6_hardware_recommendations.PDF

  • What are the advantages and disadvantages of using iCloud drive (or other Cloud services) compared with iTunes game against external hard drive, Solid State etc. to store my songs iTunes, playlists, ratings etc?

    First question: what are the advantages and disadvantages of using iCloud drive (or other Cloud services) compared with iTunes Match against Solid State external hard drive etc to store my songs iTunes, playlists, ratings etc?

    Please let me know what are the alternatives for storage of my songs, playlists, song etc. other than iTunes game ratings ($ 24.99 / year)?  Is there a way to store all my songs with my song ratings, playlists, etc. with a CD song quality? Most of my (currently 130 GB) songs on my computer are CD quality that I prefer to keep as well as my notes of each song (i.e. 5 * vs. 4 * etc.), playlists, groups (music, classical, popular, country etc.).  What are the advantages and disadvantages to store my iTunes songs while CD quality with my personal notes, reading lists, groupings in the cloud?  ICloud of Apple Drive ($ 2.99 per month or $36 / year for 200 GB) would be the best way to automatically update and maintain my rankings iTunes personal including the future editions of the song etc or using Amazon, IBM, Microsoft etc cloud or an external hard drive SSD would work as well and maybe cheaper?  I currently have my iTunes on a PC of 2007 with vista (I use a 1 8T Western Digital external upward by car for my personal info all over HP, songs, photos etc. which is currently close to 170 GB) but also have an Apple i-phone 6 & I Air cushion.  Although I did not need to have all of my music with all their sides, etc. available on all of my devices at all times as iTunes game, I still would have easy access to information on both my PC and my iPhone or iPad?  Thank you.

    In my opinion?

    I back up my data to an external drive for several reasons.  The first is my data - if I put on the cloud, someone else has control over it, they can see what I have and change the preferences to what they see of marketing.

    Almost as important as that - if I had to rely on the cloud whenever I wanted to update my playlists on my phone, I need a better internet connection I have now (working at sea).  To get the best out of the cloud, you need a solid link to home, work or mobile.

    As a spin-off - I hate the fact that Apple take away a feature in their software updates and then allow an app to be sold in their store to replace this feature - or worse still, some features that were available before the updates are now "cloud only."  And Yes - you have to pay for the cloud.  I like most of the people do not appreciate the 'accomplished fact. "

    From the back of the external hard drive ASI downside, is that to be safe, you need to store outside in a separate computer place.  If keep you them together, if one is lost, probably, they are both.  That is to say for me a full backup before you travel, then a new upward as soon as I go home.  Downside is how much data may be lost between the two back ups if I needed to restore.  For me, its worth the risk.  If I was away and say had bought a ton of new music and couldn't go home anytime soon, I can always head to the store and buy a new external drive, they are massively expensive.  Even if my computer has to go for repair and my remote is to halfway around the world - I want to buy a new one.

    Now, some will say that once you buy a new external, you spend more than you would on a cloud subscription.  It's true, but in the 6 years following the purchase of Mac that I've only had to buy a new external once - so with a little luck and planning - it works.

    I left took well - I am not a subscriber of cloud, nor do I want to be.

  • What are the requirement for the installation of TMS on VMware and a more stable version of the same thing

    Hi all

    What are the requirement for the installation of TMS on VMware.

    CPU, Windows 2008R2 and VMware platform. Please let me know the role of these servers

    You can see here the fact sheet VM:

    Virtualization Cisco TelePresence Management Suite

    More specific information such as the OS and versions can be found in the installation guides:

    TMS installation guides

  • What are the best export settings to use for a video posted on facebook

    What are the best export settings to use for a video posted on facebook?

    I used the H.264 > Vimeo HD presets in Media Encoder with excellent results.

    Thank you

    Jeff Puler

  • What are the requirements for vCenter Server 5?

    What are the requirements for vCenter Server 5?  Specifically, I'm looking at the vCenter Server Appliance but it is set to 8 GB of RAM.  I hope to run it on a lab at home that has only 8 GB etc. total RAM.

    The system requirements are here - http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-50-installation-setup-guide.pdf

  • What are the requirements for Dreamweaver?

    What are the requirements for Dreamweaver? The link is broken

    http://www.Adobe.com/products/Dreamweaver/tech-specs.html

    Works for me...

    Mylenium

  • What are the requirements of installing a trial version of lightroom operating system 4?

    What are the requirements of installing a trial version of lightroom operating system 4?

    http://www.Adobe.com/products/Photoshop-Lightroom/tech-specs.html

    Mylenium

  • What are the supported items when you use multiple suites?

    Hi all

    I created a plugin that sends the current path to a url,

    his work very well with debugging in Visual studio 2005 and then it is added to the Adobe Illustrator work only once.

    Its transmission, the path is that for a single file. While I was trying for the second time its does not work

    I use more costumes in my plugin

    AIDocumentSuite

    AIFilePathSuite

    AIActionManagerSuite

    AIUnicodeStringSuite

    AIURLSuite

    I use the "'AIURLSuite ' to call the url and calls the url several times while its used only and its only works once with multiple suites. "

    What are the supported items when you use multiple suites? It is necessary to release all the variables and the suites after completing the task?

    Should they come out in the same order in which they are acquired?

    Thanks in advance

    Farida kaid

    As far as I know, there is nothing forcing you to unleash in the same or in front of the order in which you have acquired in. Frankly, in our plugin gain us once, then lock the plugin to prevent it from unloading and don't release suites when we finished. That said, as far as I know, you should be fine to learn/work/output several times.

  • What are the requirements of system for Photoshop Elements 10?

    What are the system requirements for Photoshop elements 10

    http://helpx.Adobe.com/x-productkb/policy-pricing/system-requirements-Photoshop-elements.h tml

  • What are the requirements for OSMF player.

    Hello

    I am new to streaming. I want to use OSMF player to view content HDS.

    can I install OSMF on windows xp?

    What are the prerequist to implement the osmf player and the strobe.

    Please provide details as follows to configure osmf.

    Thank you

    vkamalan

    Hi vkamalan

    Please see the bottom of the blog for more details: http://www.adobe.com/devnet/flash/articles/osmf-media-player.html

    http://help.Adobe.com/en_US/OSMF/1.0/dev/osmf_dev_guide.PDF

    http://blogs.Adobe.com/OSMF/

  • What are the advantages and disadvantages of using a microsoft Windows account 8?

    I don't think course after my hotmail was hacked twice, what are the pros and cons of this feature on windows 8?

    See http://blogs.msdn.com/b/b8/archive/2011/09/26/signing-in-to-windows-8-with-a-windows-live-id.aspx

  • What are the formats PS 12 items use?

    What are the formats PS 12 elements accept?

    See:

    http://helpx.Adobe.com/Photoshop-elements/KB/supported-file-formats-premiere-elements.html

    Interested in what format?

  • What are the requirements\limitation for configuration of fault tolerance?

    What do I need to do properly configured?

    Here are a few good links providing the requirements and details:

    http://KB.VMware.com/kb/1010601

    http://communities.VMware.com/blogs/vmroyale/2009/05/18/VMware-fault-tolerance-requirements-and-limitations

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • What are the requirements to load Windows 7 DSP on an existing PC

    Hi people,

    I have an existing PC on which I wish to install Windows 7 OS DSP/OEM.

    What is the minimum requirement of the material that I need to upgrade to remain legally compliant?

    Some retailers to group the DSP version with a hard drive or a mouse. Is that enough to comply with the requirements of the permit in the DSP/OEM OS?

    I would have thought that the requirement would be a new motherboard at least.

    Anyone who can shed some light on the obligation to legally charge the DSP/OEM OS on a PC of exisitng?

    Thank you

    It would seem that I am not clear.

    I know that the hardware requirements to run Windows 7.

    The contract of specific DSP/OEM that this version can not be used to upgrade the operating system to an existing PC.

    Do I have to replace my existing system while it is considered a new PC and I can then legally load a DSP/OEM operating system.

    I don't know how to put it any clearer than that.

    As with any OEM license:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades with the exception of the upgrade to an different model motherboard

    -OEM versions does not move directly from an older Windows operating system

Maybe you are looking for