=== Ordifolio – PDF Product Catalog for WooCommerce ===
Contributors: ifritdmc
Tags: pdf catalog, woocommerce pdf, product catalog, catalogo pdf, csv
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create a branded, printable PDF product catalog from WooCommerce or a CSV file, grouped by category, with a download button. Crea tu catálogo PDF.

== Description ==

**Ordifolio** turns your WooCommerce products – or a simple CSV/Excel export – into a professional **PDF product catalog** in one click. Add your logo and brand colors, group products by category and let customers download the catalog with a button or the `[ordifolio_catalog]` shortcode.

Perfect for wholesalers, B2B price lists, trade fairs, shops that send catalogs by email or WhatsApp, restaurants and any business that needs a printable product list.

= Free features =

* **WooCommerce or CSV input** – use your store products or upload a CSV (comma or semicolon, UTF-8 or Excel/Windows encoding).
* **No product limit** – large catalogs are built step by step and split into PDF parts when needed.
* **Your logo and colors** – main and accent color pickers.
* **Grouped by category**, with images, SKU, price and short description.
* **Download button / shortcode**: `[ordifolio_catalog label="Download our catalog"]`.
* **Full UTF-8 support**: accents, ñ, ç, €, « » … render correctly (embedded DejaVu fonts).
* **Light on resources**: products are read in batches of 100, thumbnails are used and big catalogs are rendered in parts, so it runs on modest shared hosting without timeouts.
* **No external services**: the PDF is generated on your own server; nothing is sent to third parties.
* Spanish and English interface.
* Optional, off-by-default "Made with Ordifolio" credit.

= Ordifolio Pro =

* Sector templates (restaurant menu, fashion lookbook, industrial/spare parts)
* Print quality (300 DPI)
* Multiple catalogs (by category) with their own shortcode
* Automatic background regeneration with WP-Cron on a schedule (daily/weekly), so the PDF is always up to date
* Cover page and index
* Priority support

Plans: 49 €/year (1 site), 99 €/year (5 sites), 199 €/year (unlimited sites).

= Español =

Ordifolio crea un **catálogo PDF** de tus productos de WooCommerce o de un archivo CSV, con tu logotipo y colores, agrupado por categorías y con botón de descarga. Ideal para tarifas de precios, mayoristas, ferias y tiendas que envían catálogos por email o WhatsApp.

== Installation ==

1. Install and activate the plugin from **Plugins → Add New**.
2. Go to **PDF Catalog** in the admin menu.
3. Choose the product source (WooCommerce or CSV), upload your logo and pick your colors.
4. Click **Generate PDF now**.
5. Add `[ordifolio_catalog]` to any page or post to show the download button.

== Frequently Asked Questions ==

= Does it need WooCommerce? =

No. Without WooCommerce you can use a CSV file with the columns `name, sku, price, category, description, image` (or Spanish: `nombre, referencia, precio, categoria, descripcion, imagen`).

= Are accents, ñ and the € sign supported? =

Yes. The PDF embeds DejaVu fonts with full UTF-8 coverage, and Excel CSV files in Windows-1252 are converted automatically.

= Is there a product limit? =

No. The free version includes every product. Very large catalogs (more than 1,000 products by default, filter `ordifolio_volume_size`) are split into several PDF parts and the shortcode shows one button per part.

= Where is the PDF stored? =

In `wp-content/uploads/ordifolio/`. The file is public so visitors can download it via the shortcode.

= How do I get support? =

Use the WordPress.org support forum or write to ifritalexis@gmail.com. Pro customers get priority email support.

= Does the plugin collect any data? =

Only if you opt in. On activation Ordifolio (via the Freemius SDK) asks whether you want to share non-sensitive diagnostic data and receive updates; you can skip it and the plugin works the same. Licensing and payments for Pro are handled by Freemius.

= Will it work on cheap hosting? =

Yes. Generation runs in small steps: products are read 100 at a time and the PDF is rendered in parts of up to 1,000 products, so each request stays short and light. Thumbnails are used instead of full-size images and remote resources are disabled.

= Which images can be used from a CSV? =

Only images that already exist in your Media Library (paste their URL). Remote images are never downloaded.

== Screenshots ==

1. Settings screen: product source (WooCommerce or CSV), logo, brand colors and template.
2. Generate the catalog in one click and copy the download shortcode.
3. Generated PDF catalog: products grouped by category with images, SKU and prices (UTF-8: accents, ñ, €).
4. Download button on the front end via the [ordifolio_catalog] shortcode.

== Changelog ==

= 1.0.1 =
* Free version has no product limit: catalogs of any size are generated step by step (no timeouts) and split into PDF parts when very large.
* PDF styles moved to template .css files loaded through Dompdf's stylesheet API.
* Translations are now provided by translate.wordpress.org language packs.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.1 =
No product limit in the free version and step-by-step generation for large catalogs.

= 1.0.0 =
First release.

== Third-party libraries ==

* Dompdf (LGPL-2.1) – https://github.com/dompdf/dompdf
* php-font-lib, php-svg-lib (LGPL), Sabberworm PHP CSS Parser (MIT), Masterminds HTML5 (MIT)
* DejaVu fonts (Bitstream Vera license, free)
* Freemius WordPress SDK 2.13.4 (GPL-3.0) – https://github.com/Freemius/wordpress-sdk
