Use Python To Handle Simple PDF Edit Tasks

The article shows a few simple examples which use python to edit PDF. Copy And Encrypt PDF Just copy an existing PDF and generate a new file which is encrypted import PyPDF2 fileName = “/Users/weiyang/Desktop/Test.pdf” newFileName = “/Users/weiyang/Desktop/NewTest.pdf” file = open( fileName, ‘rb’ ) reader = PyPDF2.PdfFileReader( file ) writer Read more…

VTK Rotate Cone With Ring

A few macros we need in our project are in the following code snippet. They can make our project cleaner. #define vtkPtr( var, className ) vtkSmartPointer<className> var = \ vtkSmartPointer<className>::New() #define CPP_SET_MACRO(name,type) \ void Set##name(type _arg) \ { \ if (this->name != _arg) \ { \ this->name = _arg; \ Read more…

Build Qt-VTK Project By Qt Creator And CMake

Develop environment: VTK-8.2.0 Qt Creator 4.9.0 Based on Qt 5.12.2 (MSVC 2017, 32 bit) CMake 3.14.3 CMake Generator: Visual Studio 16 2019 Configure compilers for my building kit C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe More details are in the following image. We Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X