Cross reference flow problem

Hello

I try to develop a PDF parser, but I'm stuck at the stream of cross-reference.

First of all, my program reads all the objects in a PDF document, and then saves it.

If the version is 1.5 or superior, the cross-reference is an object that uses the filter FlateDecode and a predictor of 12.

Everything seems to be good, but the PDF reader cannot open the file.

When I save the file with a normal cross-reference, the PDF works fine.

Can someone please help me find the problem in the following file:

Download

The file above is the result of the following file:

Download

With a normal cross reference table, therefore this file (work):

Download

Note that the difference between 1 and 3 is only at the end, where the dealer or the purpose of the xref.

I checked the table of cross references again and again, but I could not find the error.

Thanks a lot for your help!

13 + 1 would be better

The specification also says: 7.5.4 [...] For a file that has never been updated incrementally, the reference section contains only one paragraph, one object numbering starts at 0. [...]

If you follow it, you must also not the Index Entry, or?

Could you show me the results of your current work?

See you soon,.

Jan

Tags: Adobe Developers

Similar Questions

  • ISO 3200 - 7.5.8 flow cross reference

    Hello

    I cannot interpret the example 4 on page 48 of the PDF 32000-1: 2008, specifically regarding the blue bold text below.

    The first field in these entries is the entrance type (2) - what is represent it 2?

    Item number stream (15) - what is represent it 15?


    position in the order of objects in the stream (0, 1, and 2) object - what this refer to?


    It is not clear which is the 15 if it is the second entry?   Someone would be able to explain where these numbers come from?

    The following example shows the same objects in the previous example, stored in the stream of an object in a PDF 1.5, as well as a stream of cross-reference.

    The cross-reference stream (see 7.5.8, "Reference Streams") contains entries for fonts (items 11 and 13) and the descriptor (item 12), which are compressed into the flow of an object. The first field in these entries is the entry type (2), the second field matches the number of the object stream (15), and the third field is the position in the order of the objects in the object stream (0, 1, and 2). The stream of reference also contains an entry of type 1 for the flow of the object itself.

    Refer to table 18 (7.5.8.3). The last 3 lines of this table describe what type (2), item (15) number and significance of the third field.

  • Problems with cross-references spots

    In FrameMaker 12, I can't reference spots to work, despite the help instructions. I created a cross-reference marker, then created the cross-reference to the marker, but he keeps inserting the entire paragraph and not only words from marker I want.

    For example:

    1. I added a marker of type reference cross to a paragraph in one of my FM files, called "user management".

    2. in another file, I created a link of my marker reference (special > referral source type cross, then selected reference markers my marker)

    3. in the type of format, I select position, which has the definition of < $paratext > as one of the constituent elements.

    Unfortunately, this procedure then inserts the text of the full paragraph, not only the marker text I want.

    I suspect the step 3 is the place where I'm wrong, but the help instructions are not specific on blocks of construction/Formats to use.

    Thank you

    Warren

    If you want to do this type of reference, then using a reference spot will work. Just create a x - ref format that has the text 'Click here for details' properly formatted and the link to the spot-xref.

    If you want to link to a custom text in the paragraph, then it's more complicated, but it can be done [although that may have a building block of $markertext would be the best way to go].

    1. Create a custom color that you will use to create a text 'invisible '. [do something bright that stands out on the page]
    2. Create a paratag for the text of x - ref custm and use this custom color.
    3. Using the color > views, assign this custom color to be invisible and visible in the view 6 in view 1 (default).
    4. Switch to the view 6 (these / 6) so you can see what you are creating.
    5. In the paragraph where you need the custom text spot x - ref, insert a framework anchored with a block of text it contains (better to create on the referring page, so that you can cpy & paste as neeed) value be out column (but adjust so that it sits on top of the exact place that you want to access). Enter the required text using the x - ref paratag.
    6. Change in view 1 to make the x - ref invisible text (these / 1).
    7. You can now make the x - ref to the "custom" text FM still sees the 'invisible' content, even if it never gets when you create the output.
  • Eratic behavior: book, the main text blocks and Cross References

    I'm on InDesign 2014.2. Mac.

    I'm working on a fairly large book. About 14 chapters / sections, about 400 total pages. There are also hundreds of cross references, almost all of them to anchor references.

    The design of the book is as simple as possible. There is no graphics, text blocks only.

    I use a single master page, with facing pages, and a block of text type. I used it throughout the production of the book, and the primary text flow worked well, chapter after chapter. Pages have been created automatically, and automatically flowed text.

    Maybe I need to change the page size of the book, and I also have a lot of editing to do which will reduce a lot of the chapters. I wanted to make sure all pages use the main text flow to do that, go as gently as possible.

    To my dismay, I discovered that although I used systematically throughout the book master text streams, all but three of my chapters have inexplicably lost their text stream. All images in these chapters have converted into ordinary images. That I edit the book, it's playing havoc with paging and referrals.

    I tried to restore the flow of text in one of the first chapters. It's easy to do, in theory.

    • Move the first page off to the side frame
    • Delete all pages except the first page
    • Command-shift-click on the first page to restore the flow of the main text
    • Copy and paste the contents of the old frame into the primary stream restored.


    When I do, the pages to move properly, and I'm back to having a chapter with a block of primary text on each page. Unfortunately, this breaks all cross-references that refer to this newly reorganized chapter and all references to the front in this chapter.


    I tried to do all that I could imagine. Only remove the frames and not pages. Try without the busy book. Nothing works. I tried the command update cross-references in the book menu. Has nothing.


    It seems impossible to redistribute the text in a new primary master framework, without completely breaking the cross references.

    I finally found something that seems to work:

    • Create a new master page at the end of the document.
    • Go to the last page of the history of the chapter and the last history image a link to the text block type on the page that you just created.
    • In the pages palette, delete all pages in the document, with the exception of the master page that you created.

    All text will be redistributed within the frameworks of masters, and cross-references (to and from the frame) seem to be intact.

  • Decompression of a stream of cross-reference with Params.

    I'm losing my mind trying to unpack this stream.  I already asked everyone and am not having much luck with it. It is a stream of cross-reference with decode them params.

    I used an external library to decompress and for some reason, the just xref streams cannot be decoded.  I noticed that software designed to decompress the pdf like quick Pdf files, etc. of VeryPdf decompress all water courses but these.  So there must be something more on the output of these that I don't understand.

    A common error message would be that the flow cannot be displayed because it contains binary data.  Very strange. Clues.

    25 0 obj

    < < / DecodeParms < < / columns 4/Predictor 12 > > / FlateDecode/filter/ID [< 6647557224A6C102A60F6D82BB22C18D > < AA383B5CF85B7F4BACB9D502B93 343E9 >] / [10-20] Index / Info 9 0 R / length root-23381/64/Prev 11 0 R / size 30, Type, XRef, W [1-2-1] > > flow

    hÞbbd "b 'Š ~@'n' U $Øù € W P ° ~...compressed data stream.

    EndStream

    endobj

    I use the library c ++ podofo.  If it is very large it won't unpack this stream.  Now I know what to do.

    It's just the processing post data uncompressed. There is another post on this forum explaining step by step.

  • Creation of cross references

    Hi all!

    I'm new in this fantastic world of Extendscript, but I've been using Framemaker since version 5.5.

    I'm working on some kind of reference Manager and it works really nice. I can list all the cross-references to the level of the book or document, select the cross-reference to appear in the active document and so on. I use unstructured FM.

    The problem I face is the creation of reference itself. I know how to create a cross-reference to the xref Guide, but I Don t know how to insert the xref in the content. I tried with NewAnchoredFormattedObject function with parameters of type object, format and textLoc . Also West of XRefSrcText property (string containg single ID:pgf_tag:text).

    The question is: can I use the same string (the content of XRefSrcText) in the form of text for the type of cross reference marker? Or just the text of TFP that contains the cross reference?

    I found several examples of using Framescript but I'm unable to reproduce the code by YOU.

    Thanks for reading me. I'd appreciate any help on this.

    Concerning

    Hello

    Your code does not work, but you forgot to update the cross-references in your document. To do this in the code, add the following line at the end of the snippet to insert XRef:

    doc. UpdateXRef (doc, newcrossref);

    Ciao

    Jang

  • All cross references a new impetus to projects with &amp; #160, text overlays

    I work with RH 9. I produce Webhelp projects based on the FM books.

    This new book is based on the formats and existing projects.

    But one thing is new: there are many inserts of text.

    My problem: the file which includes text inserts corrupted references.

    They are underlined and have good color, but do not work. Each cross reference starts with & #160;

    What can I do? Any work around? Is this a known issue?

    If you can reproduce this behavior with a small model set of content FM, reported as a bug and send the files for the guys of the CHT support.

  • Cross references have disappeared!

    Help! Just an upgrade automatic Id CC and cross-evidence disappeared from my hyperlinks. Can see and work with hypertext links very well; can see the cross-cranked up in the document, but they do not appear in the links Panel. Cannot access, go to them, update... nothing. It is a serious problem

    Apparently, Adobe has moved cross-references in a separate Panel. He is no longer a part of the hyperlinks. I found it in the type and tables.

  • Cross references in invisible space causing unwanted packaging

    I have a document I created an index of carefully mapped using cross-reference page numbers. However, I have a huge problem where the references take up way more space as they should.

    Take a look at the following screenshot:

    Screenshot-2013-10-10-14.16.01.jpg

    Notice how the numbers could easily fit on one line, but they begin to wrap way before they come into contact with the other side of the text block.

    It's very frustrating! Can someone tell me why this is happening and how I can fix this problem?

    Thank you.

    It's very frustrating! Can someone tell me why this is happening and how I can fix this problem?

    No and Yes.

    No, I have no idea why the normal paragraph for this composer. I reported it as a bug in the past.

    Yes, if you go to the universal composer, the bug goes away - the WRC doesn't have this bug. Looks like the normal paragraph composer to think of the variable as longer is it really, as the WRC doesn't have this problem.

  • Cross reference file

    Hello ,.

    I currently create manuals/books wholesale with several files.

    Some information changes to manual; the size of the machine, pipe diameters etc.  That's why I create an xref file I come across all the variations of the machine.  This way I just open an empty file, fill in the information, update book and, usually, the manual is filled.

    This can be a bit hit and Miss however times, and recently I thought it would be better to put all the information cross-reference in a Master Page on each document, this way I can import the variants of all other documents.

    Does this sound right?  What do you do?

    >... to put all the information cross-reference in a Master Page on each document...

    Did you mean reference Page?

    We use RP Xref markers only for content that exists only in a PR of a file of a book.

    For items that need to be represented in multiple files of a book, we use the Variables defined in the first file of the book.

    RP or MP Xrefs become hyperlinks in the PDF file, but go nowhere, a minor problem. VARs became clear PDF.

    Xref markers of multiplication to several files is a matter of concern. You probably don't want replicate them important to MEPs or tr/s. If you paste an xref, it will be in the original file PR and not the current RP file, even if the marker may exist there as well. This can be troublesome to manage.

    The variables are relatively easy to propagate.

    Both are easy to manage, because you can delete those unused by removing all the, then hit [Cancel] when dialogged on those in use.

  • Error of cross-references resolved in FM 10 but even ref-s working in PDF format

    Hello world

    I ran into a problem, I can't fix: when you open an FM file in FrameMaker I get an error message stating that the document pending cross-references. Find/replace control also reveals that all cross-references in the file are broken, but the pod of cross references, I can jump up to the right terminal by clicking on go to the source.

    At the same time when I want to record the book in PDF format, these same references in the PDF file work very well: they are clickable and lead exactly to the right place. The .book and FM files are all stored locally, so no network or sharing in question. Markers added automatically, is a kind of reference paragraph.

    Could you please help me find a way to fix the links that seem to work very well?

    Thank you

    Svetlana.

    > What is a wash of the MIFID and how do you do that?

    Maker Interchange Format (readable document FM markup).

    In FM10 & later, I think that it is a drop-down menu item, but what it does is:

    1. Save all the files under .mif to the [last] MIF format, including the .book
      (if by hand, save in place for FM and .book to facilitate this)
    2. Close all files
    3. open files (MIF)

    If you do it manually, to the .mif file names, remember to open the files body.mif first and save it back as FM before opening the book.mif file.

    This process at least to score and can fix or correct any data structure that are not valid MIF.

  • Cross references not Visible in Control Panel

    Hi all

    I've been enjoying the feature Cross references in Indesign CS6 to use dynamic text that changes... until very recently.

    When I started to use, references of Cross (CR) would be listed in the Panel links/CR.

    I can create a destination, create a hyperlink to this destination, change it shows (I use the paragraph number) and it works as it should.

    The problem I have is that the CRs are not visible in the cross-reference panel (hyperlinks too by the way)

    This means that I can't change my cross references.

    Does anyone know why don't they show in the control panel? Or y at - it another way to see?

    I need to solve this problem. I tried to reset the preferences I found in other posts, but that did not help

    SOLVED!

    The problem appeared to be with my working space profile. I changed my custom profile for 'For interactive PDF' (which has the hyperlinks) and it worked. All hyperlinks and cross-references show.

    I customized my workspace with the panels I need and then registered a new workspace with the same name. Everything works fine after you save a new profile. I'll take a backup of the workspace file, so I can easily restore it if it happens again.

  • Cross reference options

    Hello.

    I had a problem with my cross references and I was hoping to get the answer here.

    My problem is:

    When I'm adding a cross-reference in my document and to include the full paragraph, and page number, it says 'paragraph name page XX' most of my documents are in Norwegian, so I wonder if there is a way to chanage the language or phrases (""page "in this example) which are automatically generated by indesign for something in my language?

    Thanks for any help

    Rune

    You can create your own layout for reference.

    In the hyperlinks Panel menu, choose define cross-reference formatting.

    Select the format on the left that you want to redefine. Click on the sign that will duplicate the style and call it [Stylename] 1 +. You can rename it. Now use definition below box to refine the format in Norwegian name. Click OK.

    Now, change your reference to use this new format.

  • Global reclassification of the markers of the index to cross reference markers

    Is this possible? If so, how?

    Under FM MIF.

    Open MIF with text editor.

    In the world change every:

    TO:

    Save the MIF. Re-open in frame.

    It might even work, but I've never tried. It seems that a real cross-references ( <> tags in the MIF) not to declare the type of marker, so that they can be automatically updated.

    The usual problem is that you're fortunately marking through the text for indexing, then accidentally select an existing marker of another type. This resets silently him special > marker > marker Type: [Index] to [George], for the next and all the following new markers.

    I normally fix this by going back to the last correct Index mark, and then type markers Gisèle research and their fixing at a time.

  • Changing the text that appears in a cross reference

    Hi, I'm kind again in this cross reference something set and I'm doing something that doesn't work, I tried a few things and did some research but nothing has really helped me.

    So I work in a book, and we have several exercises (exercise 4.1.4.2, 4.x and so on) that works with the ball and the numbering style. We refer to them in the text, so I wanted to my reference to say "(do l'exercice X à la page XX) but when I link the cross reference, since the original exercise is written with a letter from cap (year X) well, he wrote"making the exercise page XX X) "

    I read that we cannot force in small character in ID (hoped to apply a simple character style) so there at - it another way to make this work?

    I can change it manually, but then it appears a conflict in the Panel cross references

    To make it more simple, I just want the exercise automated 4.X to write exercise 4.X, is it possible?

    Otherwise, I will pray for a "tiny" for CS6 style option...

    Thanks in advance

    Screen shot 2010-08-11 at 09.12.36.png

    I don't do much with the refs (tried it out on the last project, however), but I think your problem is that you must change the type of anchor text anchor point, you need to create from hyperlinks context menu > new Destination of the hyperlink...

Maybe you are looking for

  • Since El Capitan... no Emoji!

    Since the upgrade to El Capitan, I can't not Emoji icons! I pull down the Edit menu for "Emoji and symbols", but nothing happens. Emoji window does not appear again. I made many attempts, all to nothing does not. Another problem I'm having is that my

  • The envy of 1414 H8 was interrupted

    Last fall, I bought a desire H8 1414 and liked it so much that I would buy another one for a family member.  I went to Best Buy, where I bought my first and they didn't have and couldn't get one.  The same is true for other local stores to carry stuf

  • Put Q at the series level

    Is it possible to upgrade the processor, the map of RAM and the video in the q series nettops? I would like to be able to run games on one, so ideally I would like something like an ATi Radeon 5750 or NVIDIA GeForce GTX 460 card, and a faster process

  • Update Vista full DVD or Pack

    Hello world In my working career I have regularly install and update Vista (various editions) on many laptops every day. Is it possible to get a single DVD containing all the security patches/updates so that I don't have to keep updates download agai

  • Sub folders, I added using VIsta with Windows Mail, disappeared

    Subfolders that I added were to sort my important emails.  I tried to restore unscuccessfully.  Standard folders are like inbox, outbox, sent items, etc.