Is there a way to read the contents in a word or pdf document and output it with the exact format it is inside the document (i.e. spaces, indents, etc...)?

Thank you

Yes, as an image.
If it doesn't have to be *that* exact a copy, google for pdf2html and doc2html.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.