The hierarchical analysis of a document

I am trying to create an outline/index for a document. In Acrobat, I see all the chapters and subsections in here. I want to reproduce it in the code. My platform is OS X so I use CGPDF calls *.

What I have done until now is the following:

  • I take the documents catalog
  • Then I take the dictionary of contours
  • Because now I'm just looping in dictionaries of high level, starting with Outlines.First and then watch the next up next is not available

Dictionaries contours, I take A entry. This dictionary contains S and D. I see S if type Name is "GoTo" and D is of type String and contains values such as "01_Chapter_One_Foo".

So I managed to grab the outline and I have two titles and internal names for the chapters.

What I don't understand is how to translate the 01_Chapter_One_Foo to index page. Is there a dictionary that contains this mapping or should I could parse the entire document to find an element with this value?

S.

You want to look at the section of the Reference/ISO PDF 32000-1 on "named destinations".

Tags: Adobe Developers

Similar Questions

  • Problem accessing the Web Analysis Document


    Hello

    I created a document for web analytics users can open the workspace. I am trying to assing correct users supply so that they can open the document, but I am not able to do. Users already have access to the folder where the document (they are able to open other files that are in the same folder). Statement of Directors are able to open the document. How to configure all other users of the database (not adinistrators)?

    Basic users have the following reports, assigned shared services roles: Analyst, Viewer to dynamic, Explorer, runner work, personal page editor, editor of personal settings, Viewer.

    Administrative users have the following roles for reporting: reporting and analysis administrator.

    Basic users are not supposed to be able to delete and move documents.

    The minimum base users need to open the Web analysis report seems to be "Content Manager".

  • Parsing xml and store the details in the hierarchical tables

    Hi all

    I'm trying to parse a xml code and store the details in the hierarchical tables, however, I am unable to analyze the child attributes of tags and store the details in relational format.

    Oracle - 11.2.0.4 version

    My XML looks like in below:

    <Root>
    <ParentTag name="JobName" attrib1="Text" attrib2="SomeOtherText">
      <ChildTag childAttrib1="SomeValue1" childAttrib2="SomeValue2" />
      <ChildTag childAttrib1="SomeValue3" childAttrib2="SomeValue4" />
      <ChildTag childAttrib1="SomeValue5" childAttrib2="SomeValue6" />
    
      <OtherChildTag childAttrib1="SomeValue1" childAttrib2="SomeValue2" />
    </ParentTag>
    </Root>
    
    

    The table structure is as follows:

    create the table parent_details
    (
    job_id number primary key,
    VARCHAR2 (100) job_name,.
    job_attrib1 varchar2 (100),
    job_attrib2 varchar2 (100)
    );

    create the table child_details
    (
    child_id number primary key,
    number of parent_job_id
    child_attrib1 varchar2 (100),
    child_attrib2 varchar2 (100),
    Constraint fk_child_details foreign key (parent_job_id) refers to parent_details (job_id)
    );

    After analysis, I would expect the data to be stored in the format below:

    Table Name:-
    parent_details
    ID Name     Attribute1  Attribute2
    1  JobName  Text        SomeOtherText
    
    
    ChildTable (Store Child Tag details)
    ID Parent ID Attribute1  Attribute2
    1  1         SomeValue1  SomeValue2
    2  1         SomeValue3  SomeValue4
    3  1         SomeValue5  SomeValue6
    
    

    I tried following SQL, but it does not work. Please suggest if the same SQL can be improved to get the details in the expected format or should I use another solution.

    select job_details.*
      from test_xml_table t,
           xmltable ('/Root/ParentTag'
                      passing t.col 
                      columns 
                        job_name varchar2(2000) path '@name',
                        attribute1 varchar2(2000) path '@attrib1',
                        attribute2 varchar2(2000) path '@attrib2',
                        childAttribute1 varchar2(2000) path '/ChildTag/@childAttrib1'
                    ) job_details;
    

    I'm not forced to have a SQL solution, but would if it can be in SQL.

    Kind regards

    Laureline.

    Post edited by: Jen K - added the SQL, I tried to build.

    Well, the XML contains hierarchical data, and SQL is a "dish" of data, so it's up to you to treat lines that are coming out of the flat style and determine how to get that in separate tables.

    Suppose that we have several nodes of ParentTag each containing several nodes of ChildTag...

    SQL > ed
    A written file afiedt.buf

    1 with t (xml) as (select xmltype ('))
    2
    3
    4
    5
    6
    7

    8
    9
    10
    11
    12

    13
    ') of double)
    14-
    15 end of test data
    16-
    17 select x.p
    18, x.name, x.attrib1, x.attrib2
    19, including
    20, y.childattrib1, y.childattrib2
    21 t
    22, xmltable ('/ Root/ParentTag ')
    23 passage t.xml
    p 24 columns for ordinalite
    25, path name varchar2 (10) '. / @name'
    26, path of varchar2 (10) of attrib1 '. / @attrib1 '


    27, way to varchar2 (10) of attrib2 '. / @attrib2 '
    28 children xmltype road '.'
    29                 ) x
    30, xmltable ('/ ParentTag/ChildTag ')
    passage 31 x.children
    c 32 columns for ordinalite
    33, path of varchar2 (10) of childattrib1 '. / @childAttrib1 '
    34 road of varchar2 (10) of childattrib2 '. / @childAttrib2 '
    35*                ) y
    SQL > /.

    P NAME ATTRIB1 ATTRIB2 C CHILDATTRI CHILDATTRI
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
    1 text JobName SomeOtherT 1 SomeValue1 value2
    1 text JobName SomeOtherT 2 SomeValue3 SomeValue4
    1 text JobName SomeOtherT 3 SomeValue5 SomeValue6
    JobName2 TextX SomeOtherT 1 SomeValue6 SomeValue8 2
    JobName2 TextX SomeOtherT 2 SomeValue7 SomeValue9 2

    Using the 'ordinalite' gives us the line number for this node in the XML file, so that you can identify each parent as well as to say who is the first record of this parent (because it will have a child with the ordinalite 1).

    An INSERT ALL tuition assistance we can insert into two different tables at the same time to keep related data... for example

    SQL > create table tbl1 (pk number, name varchar2 (10), attrib1 varchar2 (10), attrib2 varchar2 (10))
    2.

    Table created.

    SQL > create table tbl2 (parent_pk number, attrib1 varchar2 (10), attrib2 varchar2 (10))
    2.

    Table created.

    SQL > insert all
    2 when c = 1 then
    3 in the tbl1 (pk, attrib1, attrib2)
    4 values (p, attrib1, attrib2)
    When 5 1 = 1 then
    6 in the tbl2 (parent_pk, attrib1, attrib2)
    7 values (p, childattrib1, childattrib2)
    8 with t (xml) as (select xmltype ('))
    9
    10
    11
    12
    13
    14

    15
    16
    17
    18
    19

    20
    ') of double)
    21 select x.p
    22, x.name, x.attrib1, x.attrib2
    23, including
    24, y.childattrib1, y.childattrib2
    25 t
    26, xmltable ('/ Root/ParentTag ')
    27 passage t.xml
    p 28 columns for ordinalite
    29, path name varchar2 (10) '. / @name'
    30, path of varchar2 (10) of attrib1 '. / @attrib1 '
    31, path of varchar2 (10) of attrib2 '. / @attrib2 '
    32 children xmltype road '.'
    33                 ) x
    34, xmltable ('/ ParentTag/ChildTag ')
    passage 35 x.children
    c 36 columns for ordinalite
    37, path of varchar2 (10) of childattrib1 '. / @childAttrib1 '
    38, path of varchar2 (10) of childattrib2 '. / @childAttrib2 '
    39                 ) y
    40.

    7 lines were created.

    SQL > select * from tbl1;

    PK ATTRIB1 ATTRIB2 NAME
    ---------- ---------- ---------- ----------
    1 text JobName SomeOtherT
    2 JobName2 TextX SomeOtherT

    SQL > select * from tbl2.

    PARENT_PK ATTRIB1 ATTRIB2
    ---------- ---------- ----------
    1 SomeValue1 value2
    1 SomeValue3 SomeValue4
    1 SomeValue5 SomeValue6
    SomeValue6 2 SomeValue8
    SomeValue7 2 SomeValue9

  • How to change the color of a scanned document converted to PDF

    HII...

    I have a scanned pdf document. How can I change the background color of these documents?

    Hi manasap1234 ,

    Please visit this link which deals with the same subject: change background in scanned document (analysis and optimization)

    Let us know if you face any problem.

    Thank you

    Shivam

  • I use display spectral pitch to analyze changes people´s speech (for research purposes). I need the visuals of interesting changes to the basic blue line to document my results in the articles. It is a more sophisticated way to th

    I use display spectral pitch to analyze changes people´s speech (for research purposes). I need the visuals of interesting changes to the basic blue line to document my results in the articles. It has more sophisticated way to do than to take a screenshot? It is very short sequences consisting of a few words I need to visualize somehow on a scale of hertz.

    Hearing is not really adapted to the analysis of speech on a very basic level, I fear. He does not have analysis by Wavelet, or something like that and certainly won't break down whatever it is complex in its components. What you really need is a software dedicated at the end of the analysis of speech, and some of it is free - try this: Praat: doing Phonetics by computer

  • The excel analysis

    Hi all
    Is there a jar or class in the OPS file, I use to parse excel?
    Thanks for any response.

    There is no such functions available as part of the OFA.

    But you can use Apache Jakarta POI, for the analysis of Excel documents.
    reference http://epramono.blogspot.com/2004/12/poi-for-excel-parser.html

    while deploying the OAF files, you need to deploy all the Apache Jakarta POI depand too.

    Prasanna-

  • You need a newer version of the Pages to open this document.

    I have Pages 5.5.3.

    I created documents as recently as two days ago, but now I can no longer open them as a drop-down list advises me that "it takes a more recent version of the Pages to open this document."  This issue is beyond a joke!  I locked myself in my own documents? Please help as soon as POSSIBLE.

    You have 2 versions of Pages on your Mac.

    5.5.3 pages in your Applications , Pages ' 09 file in your Applications/iWork file.

    You have double-clicked on a document of 5 Pages , and he opened the Pages ' 09 , which cannot open it. Because the two versions have the same file extension .pages

    Right-click on the document and choosing 5 Pages (orange icon) to open it.

    Pages ' 09 may have been abandoned by Apple, but it always works and still has over 100 features more than 5 Pages and is much more effective and faster.

    Continue to use Pages ' 09, unless you need to Exchange files with an iPad.

    Peter

  • I've recently upgraded to El Capitan - biggest problem is timing removed all the entries in my previous ical. Any ideas how I can track down the file containing these essential documents and install in the new program?

    I've recently upgraded to El Capitan - biggest problem is timing removed all the entries in my previous ical. Any ideas how I can track down the file containing these essential documents and install in the new program?

    All calendars are enabled in the sidebar?

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • No option to place the hierarchical block

    Hello world

    I bought NI Circuit Design Suite 14 - Student Edition. I am quite new to this program, so I wanted to work through a book in order to get some experience.

    Unfortunately, even in the first chapters that they refer to the hierarchical block function. I don't see this option. It is supposed to be in the "'place-> new hierarchical block" menu, but I do not have this entry. " Also I tried to customize my toolbar just to make sure that this feature is not disabled but I can't find any entry on this.

    I use the German version of Multisim 14 but I tried to change the language to English - there is still no menu available.

    For me, all of the features on this block herarchical lack (New, hierarchical block of the file, replace with hierarchical block). But the online help lists only these features as well.

    Is this some sort of restriction for the version of education? I wonder because the books I use offer a copy of the version of education as well, and they refer to this feature very often.

    I would apreciate any comment.

    Thank you

    Hey Stg86,

    This option exists in Multisim 14. This is a screenshot of my version of multisim, and as you can see, I have more options available in the menu of the Place. I changed the language to German, but this should not be the reason for the appearance of additional options.

    I think that this problem is related to the version or the installer of Multisim. Multisim is available in two versions: for academic users and industrial users. Some options are only available in one of the two versions.

    It's the version for industrial users:

    http://FTP.NI.com/evaluation/LabVIEW/ekit/other/Downloader/NI_Circuit_Design_Suite_14_0_downloader.e...

    It's the version for users of acadmic:

    http://FTP.NI.com/evaluation/LabVIEW/ekit/other/Downloader/NI_Circuit_Design_Suite_14_0_Education_do...

    Best regards, stephan

  • Grammar red line will only appear on the words misspelled on the half top of my document, but not on the bottom half how to fix this?

    Grammar red line will only appear on the words misspelled on the half top of my document, but not on the bottom half how to fix this? I am writing an essay and I know I misspelled words it contains, but the red line will not work. What should I do about it?

    Hi Brittany,

    You use Microsoft Word?

    If you use Microsoft Word, you can post your request in the Forum Office for assistance.

    Microsoft Office Forum

  • Update from Microsoft that I can't access the updated analysis screen.

    Where do you find the page analysis of Microsoft update in the new web page?

    How can I bypass the required internet page explore downloads and automatic updates of mandates be turned on? With this on the first page, that I can't access the analysis coming update screen.
    Thank you
    Gary

    Hi, Gary.

    Disable automatic updates in Windows XP

    http://www.theeldergeek.com/disable_automatic_update.htm

    Windows Update

    http://www.update.Microsoft.com/microsoftupdate/v6/vistadefault.aspx?ln=en-us

  • This is the message I get: "the file or directory C:\Documents and Settings\ALLUSE~1\APPLIC~1\Norton\{0C55C~1\NIS_17~1.127\IRON is damaged and unreadable. Please run the chkdsk utility. »

    Original title: this is the message I get:

    "The file or directory C:\Documents and Settings\ALLUSE~1\APPLIC~1\Norton\{0C55C~1\NIS_17~1.127\IRON is damaged and unreadable.  Please run the chkdsk utility. "When I type chkdsk/f to the command prompt it tells me that it cannot run while windows is open and asks if I want it to work when I reboot.  I say Yes and restart and nothing happens.  What I am doing wrong?

    Hello

    1. when exactly you get this error message?
    2. don't you make changes on the computer before this problem?

    Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    1. click on start and then click Run.
    2. type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

  • My queue is empty and shows no documents that are printing. Printing works fine and I can cancel all documents, but I don't see the list to cancel individual documents.

    My queue is empty and shows no documents that are printing.  Printing works fine and I can cancel all documents, but I don't see the list to cancel individual documents.

    Hi sunshineabove,

    ·          What is the number and the model of the computer?

    ·          What is the service pack installed?

    ·          Do you remember all the recent changes on the computer before the show?

    In the meantime, you can check the link below: http://support.microsoft.com/gp/pc_print_introductiontocanc

  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

Maybe you are looking for

  • History of cats after installing windows

    Hello Can you please tell me if I can get the history of cats after the installation of windows. Thank you

  • Very low volume for mp3 youtube or windows media player.

    I have windows vista I have the volume turn completely. But it is very low that if I use the speakers that are built into the computer the volume is fine. But if I plug a speaker on the back of the computer volume is very low.

  • How 'old' games, files with the extension *.gam

    How 'old' games, files with the extension *.gam? I am trying to find and run style old text adventure games.  I downloaded "ccr.gam" but it has nothing related to this extension and I can't find what I need.  HELP please. Octavmandru

  • How to align the c4100 series ink cartridge

    I have problems hologram out, so far I did 8 pages of alignment, and they look the same all OK for me, now I'm trying to align the cartridges.  My laptop uses windows 8.1.  How to align the cartridges. Thanks in advance.

  • Another problem with AutoText

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/AutoText/AutoText.html#Add (...) String p = "1111"; String t = "2222"; AutoText autoText = AutoText.getAutoText(); autoText.add(t, p, AutoText.SMART_CASE, Locale.LOCALE_en); Whe