Monday, March 25, 2019

Custom Page Sizes for Microsoft Print to PDF

Windows printer drivers need to explicitly specify that they will support custom page sizes, and for some reason Microsoft Print to PDF doesn’t do that.
First you need to find the GPD file for the driver, which is installed under C:\Windows\System32\spool\V4Dirs. I was able to find the folder and file names by using regedit and looking in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows NT\CurrentVersion\Print\Printers\ Microsoft Print to PDF\PrinterDriverData. On my system it is {084F01FA‑E634‑4D77‑83EE‑074817C03581}\74e1846.gpd; you will probably find you have the same file name but a different folder name.
Now, make a backup copy of the GPD file, so you can restore it if you fumble the editing. Then you need to edit the original file and add the following section, immediately after the line *DefaultOption: LETTER :
*Option: CUSTOMSIZE
{
*rcNameID: =USER_DEFINED_SIZE_DISPLAY
*MinSize: PAIR(936000, 1332000)
*MaxSize: PAIR(5346000, 7560000)
*MaxPrintableWidth: 5346000
}
The values for MaxSize are copied from the largest page size already defined (A3) and the values for MinSize are scaled down proportionately from that to represent A8 size. Save the new file somewhere, then copy it over the top of the original file.
Now you can define a custom page size in the normal way: go to Devices and Printers in the control panel, select the printer Microsoft Print to PDF, click Print Server properties on the ribbon menu, tick Create a new form, give it a name and enter the dimensions you want, then click Save Form. Now when you print something, select Microsoft Print to PDF as the printer, click Preferences, then Advanced and you should see your new page size in the pulldown menu.

Tuesday, October 23, 2018

Download Movie

Download Movie From indoxxi

JW player was used.

Use Google Chrome.
1. Go to the movie to download
2. Press F12
3. On Code Screen Click, Network  tab,  Click Media on Filter
4. Play the Video
5. Wait till name to display.
6. Stop the video
7. Copy the url in the name ; right click -> Copy Link Adress
8. paste to a new chrome screen.
9. the movie play there and choose download.

Wednesday, October 10, 2018

Create Photo ID with GIMP


1. use ractangle to size the photo.

a. measure head length in px ex : 1700

b. Required DPI = (Size of the head in Pixels)/(Size of Head in Inches)
to get req dpi  1552/1.33 =1166

c. The final photo will need to be 1.78"x1.78" 0r 4.5cm, so the size of the total image in pixels will need to be (Required DPIx1.78) x (Required DPI x 1.78) = 2075 x 2075
We will need to crop the our original image using these dimensions.

d. crop where + sign is right below the eye. (for approx req photo)

e. SCALE THE IMAGE TO 4.5CM WITH 300DPI

f. adjust color using
f1. level to set smooth background
f2. curve to get the right photo tone

CHECK IF THE MEASUREMENT IS RIGHT

save image :

USE script-fu -> photo ->IDphoto to set printer

 Notes :

IDPhoto script for GIMP

a4 in pixel 2480 3508 (300dpi)

1/2 a4 in pixel  2480 1750