Skip to main content

This Python package can turn file(ppt/pptx/doc/docx/wps/pdf..) into pictures

Project description

|

NAME
====

FileToPics

|

Environment
===========

Java:

yum -y localinstall jdk-8u101-linux-x64.rpm<br />


   LibreOffice:

tar zxf LibreOffice_5.2.2_Linux_x86-64_rpm.tar.gz

cd LibreOffice_5.2.2.2_Linux_x86-64_rpm/RPMS/

yum -y localinstall *.rpm

tar zxf LibreOffice_5.2.2_Linux_x86-64_rpm_langpack_zh-CN.tar.gz

cd LibreOffice_5.2.2.2_Linux_x86-64_rpm_langpack_zh-CN/RPMS

yum -y localinstall *.rpm


   Fonts:

yum groupinstall "fonts"


   ImageMagick:

yum -y localinstall ImageMagick-libs-7.0.3-4.x86_64.rpm

yum -y localinstall ImageMagick-7.0.3-4.x86_64.rpm

yum -y localinstall ImageMagick-devel-7.0.3-4.x86_64.rpm


|

Use
===
pip install FileToPics

|

SYNOPSIS
========

.. code-block::


from FileToPics import FileToPics

file2pics = FileToPics(filePath = '/home/test.pdf', picPath = '/home/', fileType = 'pdf')
res = file2pics.fileToPicture()

file2pics = FileToPics(filePath = '/home/test.pptx', picPath = '/home/', fileType = 'ppt')
res = file2pics.fileToPicture()


|

DESCRIPTION
===========
This Python package can turn file(ppt/pptx/doc/docx/wps/pdf..) into pictures

Params:

filepath : you want to operate the source file path

picpath : Image storage path(In / at the end)

filetype : operate the source file type

pictype : You want to generate the image format(default webp)

Notice:

params filepath and filetype does not match will be reported to the wrong

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FileToPics-0.0.6.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file FileToPics-0.0.6.tar.gz.

File metadata

  • Download URL: FileToPics-0.0.6.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FileToPics-0.0.6.tar.gz
Algorithm Hash digest
SHA256 039a8e0decc89d09dd9520b47cdf20ba49cd1d75454b5e505c431c533d1764da
MD5 70c8a6364eef2d30ba2094b824f1ef5f
BLAKE2b-256 7d7c75b04a45a4b3e34343174d046957b3d10611f9cf3562d107251dd6a1b214

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page