<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Supriya, did you not ask virtually the same question on 09/02/2019 18:06 ?  If so, were the answers from Karl Berry and Mike Marchywka not of any help ?<br>
Philip Taylor<br>
--------<br>
</div>
<blockquote type="cite" cite="mid:CAGrteqYDjytie2P5x0s=dPPZXpBmVwLN8bwDJ0=SHEVzjk7=ew@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Hello everyone,</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
I am trying to understand how objects are encoded in the PDF.</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
I realized that it's not consistent with different PDF files (I created several PDF with different number of pages and checked the obj ID (ex format- 1 0 obj .... endobj) ). Each file consists of several objects and the way they are assigned is not consistent
 (sometime its incremented and some time decremented, increment is also random).</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
<br>
</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Could anyone explain me how objects are assigned in the PDF?</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Is there a way to generate obj number/ID, if yes, what is the way to generate obj IDs.</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Any information about how the objects are created and encoded will be helpful.</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
<br>
</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Thanks in advance for your help.</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
<br>
</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Have a great day.</div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
Regards<span class="gmail_default" style="font-family:comic sans
              ms,sans-serif;color:rgb(51,153,153)">,</span></div>
<div style="font-family:comic sans
            ms,sans-serif;color:rgb(51,153,153)">
<span class="gmail_default" style="font-family:comic sans
              ms,sans-serif;color:rgb(51,153,153)"></span>Supriya<br>
</div>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>