<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://infocepo.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Table_extract_PDF2CSV</id>
	<title>Table extract PDF2CSV - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://infocepo.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Table_extract_PDF2CSV"/>
	<link rel="alternate" type="text/html" href="https://infocepo.com/wiki/index.php?title=Table_extract_PDF2CSV&amp;action=history"/>
	<updated>2026-05-16T03:07:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://infocepo.com/wiki/index.php?title=Table_extract_PDF2CSV&amp;diff=1805&amp;oldid=prev</id>
		<title>Tcepo: Created page with &quot;Astuce pour convertir correctement des tableaux PDF à CSV &lt;pre&gt; import camelot  # Use the 'file_path' variable to specify the path to your PDF file_path = '/home/noname/Downl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://infocepo.com/wiki/index.php?title=Table_extract_PDF2CSV&amp;diff=1805&amp;oldid=prev"/>
		<updated>2024-03-12T19:34:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Astuce pour convertir correctement des tableaux PDF à CSV &amp;lt;pre&amp;gt; import camelot  # Use the &amp;#039;file_path&amp;#039; variable to specify the path to your PDF file_path = &amp;#039;/home/noname/Downl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Astuce pour convertir correctement des tableaux PDF à CSV&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import camelot&lt;br /&gt;
&lt;br /&gt;
# Use the 'file_path' variable to specify the path to your PDF&lt;br /&gt;
file_path = '/home/noname/Downloads/liste_nationale_internet_310719.pdf'&lt;br /&gt;
&lt;br /&gt;
# Extract tables from the PDF&lt;br /&gt;
tables = camelot.read_pdf(file_path, pages='all', flavor='stream')&lt;br /&gt;
&lt;br /&gt;
for i, table in enumerate(tables):&lt;br /&gt;
    # Convert table to DataFrame&lt;br /&gt;
    df = table.df&lt;br /&gt;
&lt;br /&gt;
    # Define CSV file path, unique for each table&lt;br /&gt;
    csv_file_path = f'table_{i}.csv'&lt;br /&gt;
&lt;br /&gt;
    # Export the DataFrame to a CSV file&lt;br /&gt;
    df.to_csv(csv_file_path, index=False)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tcepo</name></author>
	</entry>
</feed>