Extract document data (pdf) to excel

hola!
sigo con un tema parecido.
tengo este extract document data


necsito escribir la informacion en cada cerda correspondiente al excel
A spreadsheet template with headers for invoice details including Invoice#, Date, P.O.#, Shipment, Terms of payment, Quantity Shipped, UOM, Item #, Product Description, Batch/Serial No., and Country of Origin. (Subtitulado por IA)

los datos extraido de la tabla, ya los logro escribir, pero los otros solo se escribe el primer dato
image

help please friends

@mively

I am not able convert you language to English but let me try to give some solution,
follow below some video tutorial

1 Like

Could you show a screenshot of the Input PDF? (Hide sensitive data, if any)
if it is dummy pdf, could you share it here?

hola amigo, ya lo pude solucionar! cualquier cosa cuento contigo!

1 Like

una consulta, logré hacerlo de buena forma, pero los datos se repiten todo el tiempo
tengo un for ach


y adentro el excel aplication scope en donde escribira los datos
luego escribo los datos de la tabla

y voy aumentando la fila

se ve asi, cuando deberian ser solo tres datos, ya que eso trae el pdf

ayuda

a veces escribe los 3 valores bien y otras los va repitiendo.
otra consulta @V_Roboto_V
este invoke es solo para 3 valores o sirve para cuando hay mas valores?

he hecho pruebas y esto sucede cuando en el excelya hay datos, y cuando no, lo cual no deberia ser asi ya que tengo que seguir escribiendo datos de otros pdf con la misma estructura ahi :confused:
tambien lo raro es que lo escribe siempre 57 veces

It will work for any number of rows.

Are you trying to write the data from all PDF to this one Excel? If you are doing that, then you must keep the following things in Mind:

  1. Make sure your flow is Extract data from PDF → InvokeCode to addRows → repeat for every PDF.
  2. At the end, add the entire DataTable to the Excel.

Or

  1. Set dt_Data.Clear() as the first line in the “Invoke Code”, this will make sure that it is empty before processing the data from a new PDF


cuando agrego
dt_Data.Clear()
al principio, solo me escribe el primer dato, cuando lo saco de la segunda linea, escribe varias vecs los 3 datos

then try this:

This assign statement will clear the data table before entering the IF.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.