<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>