Hi all, i am trying to see if my pdf document has an non embedded fonts. i see code snippets for detecting embedded/non-embedded fonts in the area " Search and Get Text Segments from All Pages of PDF Document" but this is done using a search term.
TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber(“Figure”);
but i need to search for all words in all pages of the document. how can i do that
As per my assumptions, you want to check if font(s) are embedded or not, inside your PDF document. Please check following code snippet which will display all the font names along with the information about, if they are embedded or not.
In order to check font embedded status for all pages, you need to traverse through all pages of a document in a loop. Please check following code snippet to achieve that.
It is good to know that your requirement has been achieved by the suggested approach.
I can see that you have created a separate topic for this requirement and it has been replied as well in the respective forum thread. You may check the reply there. In event of any further query, please feel free to contact us.