Skip to content

Instantly share code, notes, and snippets.

@bzamecnik
Last active July 26, 2018 19:53
Show Gist options
  • Save bzamecnik/7cccce99dd784406f3586946b8189589 to your computer and use it in GitHub Desktop.
Save bzamecnik/7cccce99dd784406f3586946b8189589 to your computer and use it in GitHub Desktop.
Example extractions from a invoice with tax details.
import rossum
exctracted = rossum.extract('invoice.pdf')
rossum.extraction.print_summary(exctracted)
Language: ces
Currency: czk
Amount Due: "0.00" (90.39 %)
Amount Rounding: "0.40" (99.20 %)
Bank Account: "86-731200217" (98.21 %)
Constant Symbol: "0308" (100.00 %)
Date Due: "2015-01-17" (99.72 %)
Invoice Identifier: "250100413" (99.26 %)
Issue Date: "2015-01-07" (99.77 %)
Recipient Address: "130 00 Praha - Vinohrady" (97.96 %)
Recipient Address: "Vinohradská 2029/124" (98.35 %)
Recipient Company ID: "24801704" (99.21 %)
Recipient Name: "FAIROS MEDIA, spol. s r.o" (94.35 %)
Recipient VAT Number: "CZ24801704" (98.21 %)
Sort Code: "0100" (98.39 %)
Supplier Address: "564 01 Žamberk" (79.31 %)
Supplier Address: "Raisova 232" (98.27 %)
Supplier Company ID: "25954831" (99.16 %)
Supplier Name: "TYHAN s.r.o" (95.98 %)
Supplier VAT Number: "CZ25954831" (99.16 %)
Tax Base Total: "3342.46" (90.59 %)
Tax Details:
- Tax Base: "0.40" (99.06 %)
- Tax Rate: "0" (79.95 %)
Tax Details:
- Tax Base: "0.00" (99.17 %)
- Tax Rate: "10" (99.21 %)
- Tax Amount: "0.00" (99.16 %)
- Tax Total: "0.00" (98.38 %)
Tax Details:
- Tax Base: "0.00" (99.06 %)
- Tax Rate: "15" (99.27 %)
- Tax Amount: "0.00" (99.64 %)
- Tax Total: "0.00" (99.13 %)
Tax Details:
- Tax Base: "3342.46" (91.76 %)
- Tax Rate: "21" (98.35 %)
- Tax Amount: "702.14" (98.74 %)
- Tax Total: "4044.60" (79.65 %)
Tax Point Date: "2015-01-07" (99.21 %)
Tax Total: "702.14" (97.53 %)
Total Amount: "4044.60" (96.47 %)
Variable Symbol: "250100413" (99.65 %)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment