How to create text searchable XPS in c#? RRS feed

  • Question

  • Say, I have an image-only xps file, and an OCR software that scans the entire page, gives me the text and locations. How can I add the text information to the image-only xps file and create a text-searchable xps file using c#? thanks.
    Monday, May 24, 2010 7:56 PM

All replies

  • maybe try it that way...

    for each page in the image-only xps file do:

    a) create a ContainerVisual

    b) create a visual containing the text from your OCR software and add it to the container

    c) read FixedPage from image-only xps file and add it to the container

    d) write out the ContainerVisual to a new XPS file

    Tuesday, June 8, 2010 7:42 AM