US 12,475,306 B1
Method and system for merging pdf documents with interactive table of contents
Jigar K. Gala, Mumbai (IN); Rohan M. Barai, Mumbai (IN); Melanie Dorn, Great Neck, NY (US); Akshat K. Gandhi, Mumbai (IN); Afshir M. Irani, Bronx, NY (US); Jeffrey M. Kaufman, Port Washington, NY (US); Nalini Kanta Nanda, Mumbai (IN); and Harikumar Pillai, Mumbai (IN)
Assigned to MORGAN STANLEY SERVICES GROUP INC., New York, NY (US)
Filed by MORGAN STANLEY SERVICES GROUP INC., New York, NY (US)
Filed on May 13, 2025, as Appl. No. 19/206,290.
Int. Cl. G06F 40/00 (2020.01); G06F 40/166 (2020.01); G06V 30/416 (2022.01)
CPC G06F 40/166 (2020.01) [G06V 30/416 (2022.01)] 15 Claims
OG exemplary drawing
 
1. A method for creating a merged navigable PDF document, the method comprising:
receiving an input comprising at least two content segments, each content segment, of the at least two content segments, having a corresponding data structure including at least a title, a page count value, and a page number value;
determining, for each data structure, the page number value by adding together
an initial value of one,
an offset corresponding to a total number of table of contents pages, and
a total sum of the page counts of any previously processed content segments, unless no previously processed content segments exist, in which case, the total sum of the page counts is used as zero;
generating a set of table of contents pages with the title and the page number value of each content segment, of the at least two content segments, to produce a set of populated table of contents pages having a specified number of pages;
processing the set of populated table of contents pages to identify a set of title positions and a set of page number positions;
wherein a title position of the set of title positions corresponds to a content segment title and a page number position of the set of page number positions corresponds to a content segment page number;
establishing, based on the set of title positions and the set of page number positions, a set of pointers on the set of populated table of contents pages such that each pointer in the set of pointers indicates a start location of each successive contents segment of the merged PDF document;
creating the merged PDF document by combining the set of table of contents pages with the at least two content segments, such that when a user views the merged PDF document and selects one of the set of pointers in one of the set of populated table of contents pages, the user is navigated to a corresponding portion of the merged PDF document; and
storing the merged PDF document in a non-transitory storage for access and viewing by the user.