convert text into PDF file using python -


a quick question:

i opened .pdf file notepad++ , saved .txt file. has following value:

%pdf-1.7\n\n4 0 obj\n(identity)\nendobj\n5 0 obj(adobe)endobj8 0 obj> stream xœì½x\ÅÕ7>sïÝÞ«¶hµ»zíjòªkv³,­Õ­b[’ek²ekvqaÝmlÜ0Íу˜nb Á$ÙÆ¢›¼¦…’˜4jph€ " éæÎcxóþŸïý¾g#Ÿ=¿™;3wæÌ™3gæÞ]#Œ²Ã‡€:Ê›fwÕþ°ã ’ý~+bž£¥åó_{óÒÕ¿™€õ®ŠÒº²‹u3¯ý!e¤ª¼¢rÁ«|ˆ{w!..................................

i thinking of converting text pdf using python.

may know modules needed?

share|improve question
    
can't save .pdf again? seems long way around. – jambrothers mar 28 @ 10:37
    
hi @jambrothers coming trying read db column attachment (which not have access files) long way around needed. have extract text file , insert db column.. files stored in db (with image datatype) displayed '0x255044...' when read python df, displayed '%pdf-1.7\n\n4 0 obj\n(identity)\nendobj\n5 0 obj(adobe)endobj8 0 obj> stream xœì½x\ÅÕ7>sïÝÞ«¶hµ»....' thinking of reading , "converting" original doc extract text within file. – grqm. mar 28 @ 14:00
    
so if understand correctly want extract human-readable text pdf file have saved .txt extension? if i'd refer answers here: stackoverflow.com/questions/25665/… – jambrothers mar 28 @ 14:27

your answer

 
discard

posting answer, agree privacy policy , terms of service.

browse other questions tagged or ask own question.

Comments