Reading PDF data from Byte Stream
-
-
hi guys i have a byte array created from a pdf file , now i want to get text data from this byte data without saving file to disk , means i want to get string somewhere from memory stream . any help ? regards. Tauseef A Khan MCP Dotnet framework 2.0.
You can convert a byte array to a string using: System.Text.Encoding.Unicode.GetString([byteArray]); Note: Unicode is just one of the encodings. You can use ASCII, UTF8, etc
-
You can convert a byte array to a string using: System.Text.Encoding.Unicode.GetString([byteArray]); Note: Unicode is just one of the encodings. You can use ASCII, UTF8, etc
Actually that not his requirement.., He wants to read the information in PDF Document ...
Rajesh B --> A Poor Workman Blames His Tools <--
-
hi guys i have a byte array created from a pdf file , now i want to get text data from this byte data without saving file to disk , means i want to get string somewhere from memory stream . any help ? regards. Tauseef A Khan MCP Dotnet framework 2.0.
You cannot read a PDF file in this way. A PDF file is a structured file containing objects that define pages, strings, images, fonts etc, with an index at the end of the file that allows quick random access to each object. You can get a copy of the PDF specification[^] from the Adobe web site, or use one of the free PDF libraries such as iTextSharp[^].
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
hi guys i have a byte array created from a pdf file , now i want to get text data from this byte data without saving file to disk , means i want to get string somewhere from memory stream . any help ? regards. Tauseef A Khan MCP Dotnet framework 2.0.
How do you intend to define the location and content of the string you want to capture? I ask because the pdf format converted to a byte array isn't a plain text stream, it is binary data, which will make handling the data potentially problematic.
I wasn't, now I am, then I won't be anymore.