// Not much of PHP magic
// This just takes a PDF file from a path
// and executes Ghostscript to convert your
// PDF to version 1.4
// You need to have Ghostscript installed
// See https://www.ghostscript.com/Documentation.html
$PDFFile = '/path/to/your/pdf.pdf';
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Note: To add this to your .vimrc, you'll have to delete any character that is written with a caret (e.g. "^M") and enter the real value; to enter ^M, enter insert mode and type CTRL-V CTRL-M. | |
" Easily create class. | |
function! Class() | |
let name = input('Class Name? ') | |
let namespace = input('Any Namespace? ') | |
if strlen(namespace) | |
exec 'normal i<?php namespace ' . namespace . ';^M^M^[' | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Found in https://www.datanumen.com/blogs/2-quick-ways-extract-individual-pages-word-document/ | |
Sub SaveEachPageAsADoc() | |
Dim objNewDoc As Document | |
Dim objDoc As Document | |
Dim nPageNumber As Integer | |
Dim strFolder As String | |
Dim objFileName As Range | |
' Initialization |