Guest User

Untitled

a guest
Jan 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. gs
  2. -dBATCH
  3. -dNOPAUSE
  4. -sDEVICE=txtwrite
  5. -dFirstPage=3
  6. -dLastPage=5
  7. -sOutputFile=-
  8. /path/to/your/pdf
  9.  
  10. gs
  11. -q
  12. -dNODISPLAY
  13. -P-
  14. -dSAFER
  15. -dDELAYBIND
  16. -dWRITESYSTEMDICT
  17. -dSIMPLE
  18. /path/to/ps2ascii.ps
  19. input.ps
  20. -c quit
  21.  
  22. pdftotext
  23. -f 13
  24. -l 17
  25. -layout
  26. -opw supersecret
  27. -upw secret
  28. -eol unix
  29. -nopgbrk
  30. /path/to/your/pdf
  31. - |less
  32.  
  33. mutool draw -F txt the.pdf
  34.  
  35. DPL.LoadFromFile(@"Sample.pdf", "");
  36. DPL.SetOrigin(1); // Sets 0,0 coordinate position to top left of page, default is bottom left
  37. DPL.SetTextExtractionArea(35, 35, 229, 30); // Left, Top, Width, Height
  38. string ExtractedContent = DPL.GetPageText(8);
  39. Console.WriteLine(ExtractedContent);
Add Comment
Please, Sign In to add comment