Skip to main content

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

Project description

Name

FileToPics

Environment:

   Java :

yum -y localinstall jdk-8u101-linux-x64.rpm


   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

from FileToPics import FileToPics

file2pics = FileToPics(filepath = '/home/test.pdf', picpath = '/home/', filetype = 'pdf')
res = file2pics.file_to_pics()

file2pics = FileToPics(filepath = '/home/test.pptx', picpath = '/home/', filetype = 'ppt')
res = file2pics.file_to_pics()


DESCRIPTION

This Python package can turn file(ppt/pptx/doc/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.4.tar.gz (2.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for FileToPics-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a90ec800ec7d699030f87f98c6ca1f93a56b5a193e4e0baeee08b11d020e2157
MD5 70da760fc65e69e74f8158e3a6903bae
BLAKE2b-256 4f6c4d318f20c3f7e64dedbf5814b0a1b374d341db6f3d333c1e79ba85342625

See more details on using hashes here.

Supported by

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