You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,8 +21,9 @@ Enhance |PyMuPDF| capability with **Office** document support & **RAG/LLM** inte
21
21
- Supports text and table extraction, document conversion and more.
22
22
- Includes the commercial version of |PyMuPDF4LLM|.
23
23
24
-
To enquire about obtaining a commercial license, then `use this contact page <https://artifex.com/contact/>`_.
24
+
To enquire about obtaining a commercial license, then `use this contact page <https://artifex.com/contact/?utm_source=rtd-pymupdf&utm_medium=referral&utm_content=page-link&utm_campaign=docs>`_.
25
25
26
+
Trial license keys are available for evaluation purposes. Please `fill out the form on this page <https://pymupdf.pro/try-pro/?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=cta-button-pymupdf-pro-page&utm_campaign=docs>`_ to obtain a trial key.
26
27
27
28
.. note::
28
29
@@ -100,24 +101,6 @@ Import |PyMuPDF Pro| and you can then reference **Office** documents directly, e
100
101
From then on you can work with document pages just as you would do normally, but with respect to the `restrictions <PyMuPDFPro_Restrictions>`.
The following code snippet can convert your **Office** document to |PDF| format:
107
-
108
-
.. code-block:: python
109
-
110
-
import pymupdf.pro
111
-
pymupdf.pro.unlock()
112
-
113
-
doc = pymupdf.open("my-office-doc.xlsx")
114
-
115
-
pdfdata = doc.convert_to_pdf()
116
-
withopen('output.pdf', 'wb') as f:
117
-
f.write(pdfdata)
118
-
119
-
120
-
121
104
.. _PyMuPDFPro_Restrictions:
122
105
123
106
Restrictions
@@ -128,15 +111,15 @@ Restrictions
128
111
129
112
**Only the first 3 pages of any document will be available.**
130
113
131
-
To unlock full functionality you should `obtain a trial key <https://pymupdf.pro/try-pro/?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=cta-button-pymupdf-pro-page>`_.
114
+
To unlock full functionality you should `obtain a trial key <https://pymupdf.pro/try-pro/?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=cta-button-pymupdf-pro-page&utm_campaign=docs>`_.
132
115
133
116
134
117
.. _PyMuPDFPro_TrialKeys:
135
118
136
119
Trial keys
137
120
-----------------------
138
121
139
-
To obtain a license key `please fill out the form on this page <https://pymupdf.pro/try-pro/?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=cta-button-pymupdf-pro-page>`_. You will then have the trial key emailled to the address you submitted.
122
+
To obtain a license key `please fill out the form on this page <https://pymupdf.pro/try-pro/?utm_source=rtd-pymupdf&utm_medium=rtd&utm_content=cta-button-pymupdf-pro-page&utm_campaign=docs>`_. You will then have the trial key emailled to the address you submitted.
140
123
141
124
142
125
Using a key
@@ -151,7 +134,79 @@ Initialize |PyMuPDF Pro| with a key as follows:
151
134
pymupdf.pro.unlock(my_key)
152
135
# PyMuPDF has now been extended with PyMuPDF Pro features.
153
136
154
-
This will allow you to evaluate the product for a limited time. If you want to use |PyMuPDF Pro| after this time you should then `enquire about obtaining a commercial license <https://artifex.com/products/pymupdf-pro/>`_.
137
+
This will allow you to evaluate the product for a limited time. If you want to use |PyMuPDF Pro| after this time you should then `enquire about obtaining a commercial license <https://artifex.com/contact/?utm_source=rtd-pymupdf&utm_medium=referral&utm_content=page-link&utm_campaign=docs>`_.
138
+
139
+
140
+
141
+
142
+
Converting
143
+
-------------
144
+
145
+
**Office** document to |PDF|
146
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147
+
148
+
Use the :meth:`office_to_pdf()` method to convert an **Office** document to |PDF|, e.g.:
0 commit comments