Document Attachments to Tally Data

Discussion in 'Tally Developer' started by Amit Kamdar, Jun 15, 2023.

    
  1. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Credit :- Original code and CONCEPT/IDEA ►► @SANTHOSH C KURIAN

    Thank you for the Idea and Vision ......

    DLS 01.PNG

    DLS 02.PNG

    DLS 02a.PNG
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member



  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member



  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member



  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member



  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It works for -------------------
    -- Company Master
    -- Ledger Master
    -- Ledger Display
    -- Columnar Ledger Display
    -- Vouchers
    -- Voucher Register
    -- Voucher Register - Columnar
    -- DayBook
    -- DayBook - Columnar
     
    naren1234, Gagan Jyoti and love like this.


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It support all type of Files -- except EXE, DAT, COM and such dangerous files.

    All files can be opened in respective programs.
     


  8. Gagan Jyoti

    Gagan Jyoti Member


    Great! You are a inspiration to all sir.
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Thanks ... :):)

    But more then less -- I get inspired and jolted to action (I am lazybones by default ;)) by innovative IDEAS from members .......

    And also I get into action -- only and if one of my CLIENTS need the same ...........
     
    Gagan Jyoti likes this.


  10. spudaya

    spudaya New Member


    Sir its realy super
     


  11. spudaya

    spudaya New Member



  12. sattam

    sattam Active Member


    wow great
     


  13. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    aap bahut mehnat karte ho, lazy to mein hun.. nice work sir,

    Can we read PDF files using TDL ?
     


  14. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Yes you can read PDF, Audio files, video files -- basically any file that you can view in Windows.

    All files will open in their respective default program.

    0111.PNG

    0112.PNG
     
    Last edited: Jun 19, 2023


  15. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    I mean reading PDF and then showing data in Tally Report.. It could be done if the text and data in PDF is not compressed with deflate or other encoding..
     


  16. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Hmm ... a bit too advanced for me .... :(:D
     



  17. Even Goenkas are also planning this thing through AI/ML.
     


  18. Himanshu-2002

    Himanshu-2002 Active Member


    But It would be just too much difficult to extract data from all kinds of PDF... Plus Camera scanned PDFs are a headache to parse
     


  19. Himanshu-2002

    Himanshu-2002 Active Member


    Even I think Chat GPT level program will fail to understand all kind of PDF/Doc So, I highly doubt if Tally solutions would be able to do it anytime soon.
     


  20. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    That's not a big deal for Tally Solutions.. Since Zip and Unzip functions are there in Tally Developer, Zip/Unzip uses the same compression encoding, they can use them if the expose the deflate encoding/decoding functions.. they already have them.

    Only problem is Compression, other wise you can read the pdf file using Open File : Read: Text to read the PDF files
     


  21. Himanshu-2002

    Himanshu-2002 Active Member


    Sir you sure you can Just Read the PDF by Opening it as Text File?... I tried it but it doesn't seems to work...Do you have any working samples?

    I recently developed a PDF To Tally Solution but there I used Python and OCR to read PDFs
     


  22. Devendra_Rawat

    Devendra_Rawat Well-Known Member


    Save Below Mentioned texts in notepad then save file swith .pdf extension

    Sample Text 1.. It shows Hello World in PDF file
    Code:
    %PDF-2.0
    1 0 obj <</Type /Catalog /Pages 2 0 R>>
    endobj
    2 0 obj <</Type /Pages /Kids [3 0 R] /Count 1>>
    endobj
    3 0 obj<</Type /Page /Parent 2 0 R /Resources 4 0 R /MediaBox [0 0 500 800] /Contents 6 0 R>>
    endobj
    4 0 obj<</Font <</F1 5 0 R>>>>
    endobj
    5 0 obj<</Type /Font /Subtype /Type1 /BaseFont /Helvetica>>
    endobj
    6 0 obj
    <</Length 44>>
    stream
    BT /F1 24 Tf 175 720 Td (Hello World!)Tj ET
    endstream
    endobj
    xref
    0 7
    0000000000 65535 f
    0000000009 00000 n
    0000000056 00000 n
    0000000111 00000 n
    0000000212 00000 n
    0000000250 00000 n
    0000000317 00000 n
    trailer <</Size 7/Root 1 0 R>>
    startxref
    406
    %%EOF
    in notepad then save file with .pdf extension


    Sample Text 2.00 It shows a Box and a Curved Line in PDF
    Code:
    %PDF-2.0
    1 0 obj <</Type /Catalog /Pages 2 0 R>>
    endobj
    2 0 obj <</Type /Pages /Kids [3 0 R] /Count 1 /MediaBox [0 0 500 800]>>
    endobj
    3 0 obj<</Type /Page /Parent 2 0 R /Contents 4 0 R>>
    endobj
    4 0 obj
    <</Length 61>>
    stream
    175 720 m 175 500 l 300 800 400 600 v 100 650 50 75 re h S
    endstream
    endobj
    xref
    0 5
    0000000000 65535 f
    0000000010 00000 n
    0000000059 00000 n
    0000000140 00000 n
    0000000202 00000 n
    trailer <</Size 5/Root 1 0 R>>
    startxref
    314
    %%EOF
    Problem comes here .. after stream.. in most of the PDFs text/data between stream and endstream is compressed

    Code:
    6 0 obj
    <</Length 44>>
    stream
    BT /F1 24 Tf 175 720 Td (Hello World!)Tj ET
    endstream
    endobj
     
    Last edited: Jun 21, 2023


  23. Himanshu-2002

    Himanshu-2002 Active Member


    Understood... But This method won't work in majority of the PDFs(Due to various issues Like Scanned Images in PDF) ... OCR would lot more easier than this method... Isme toh Full effort khud karna padega.
     


  24. Mohibur

    Mohibur New Member


    any idea "display attached file" tally prime Like this
    upload_2023-10-28_23-50-59.png
     

    Attached Files:

    • TT.jpg
      TT.jpg
      File size:
      203.4 KB
      Views:
      4


  25. naren1234

    naren1234 Member


    If it's about parsing Text from PDFs, then there is a free utility / library called Poppler which contains a bunch of utilities including 'pdftotext' (to read a PDF and output to text) -it is based on another program xpdfreader's code. Poppler's latest binary executable releases and it's source codes are available on github. Is this helpful to you in any way?
     


Share This Page