cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marcodea Regular Visitor
Regular Visitor

PDF Connector: table on multiple pages

I'm trying to import data from a PDF file, but a table bigger than one page is imported in Power Bi as multiple tables.

Is there any workaround?

 

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: PDF Connector: table on multiple pages

Hi @marcodea 

I make a test for your scenario:

I have a pdf with a large table in 23 pages (from page 1 to page 23),

1.open Edit queries, create a new blank query, 

 

2.open its Advanced editor, write the code

let
Source = Pdf.Tables(File.Contents("C:\desktop\case\5\5.10\date.pdf"), [StartPage=1, EndPage=23])
in
Source

 

3.Expand "Data" column

5.png

 

4.Filter "Kind" column to keep only "Table"

6.png

 

5.Then we will get all data in one table

7.png

I could remove some useless columns,keep only last two columns, then "Use the first row as headers"

7.png

8.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

marcodea Regular Visitor
Regular Visitor

Re: PDF Connector: table on multiple pages

@v-juanli-msft ,

thanks for your answer, I've learned something new.

 

If I have understood well, this code doesn't solve my case since I have more the one table in the same PDF and I don't know in advance the page of each table.

 

Regards

 

Tschiku Visitor
Visitor

Re: PDF Connector: table on multiple pages

Awesome Magie! Gold tip!

 

Working around a problem like this, without result till see this. Anyway, still having an issue: on my pdf file, the table as date on it , but on two different rows:


Example:

2019-07

23

 

when it should be 2019-07-23 on the same row. Any expert advice on how to solve this?

 

Thks!


TS

 

 

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 348 members 3,093 guests
Please welcome our newest community members: