PDF Multi Page information
Posted: 2017-05-21T07:08:53-07:00
hi,
I got pdf files, with multi page.
I develop a .bat file with this line
@for /R %%a in (*.jpg *.tif *.PDF) do magick identify -ping -format "%%d\\%%f;%%n;%%p; %%[fx:(w/resolution.x)*2.54];%%[fx:(h/resolution.y)*2.54];%%w;%%h;%%[depth];%%x\n" "%%a" >> %2
Whene this line execute a pdf file for x pages, the system write on %2 files
H:\comptage\volume\200PDF-20000images\0001\0001.pdf;100;0; 118.886;84.1022;3370;2384;16;72
H:\comptage\volume\200PDF-20000images\0001\0001.pdf;100;1; 42.4392;29.6686;1203;841;16;72
H:\comptage\volume\200PDF-20000images\0001\0001.pdf;100;2; 20.9903;29.5981;595;839;16;72
In this case 0001.pdf have 3 pages
I try to do the same thing in vbscript files
Result = imageMagick.convert(objFile.name,"-ping","-format","%d%f;%n; %p; %[fx:(w/resolution.x)*2.54]; %[fx:(h/resolution.y)*2.54]; %w;%h; %[depth]; %x\n","info:")
But in this case, the system return only information of first page
Do you have an idea ?
jean-marc
I got pdf files, with multi page.
I develop a .bat file with this line
@for /R %%a in (*.jpg *.tif *.PDF) do magick identify -ping -format "%%d\\%%f;%%n;%%p; %%[fx:(w/resolution.x)*2.54];%%[fx:(h/resolution.y)*2.54];%%w;%%h;%%[depth];%%x\n" "%%a" >> %2
Whene this line execute a pdf file for x pages, the system write on %2 files
H:\comptage\volume\200PDF-20000images\0001\0001.pdf;100;0; 118.886;84.1022;3370;2384;16;72
H:\comptage\volume\200PDF-20000images\0001\0001.pdf;100;1; 42.4392;29.6686;1203;841;16;72
H:\comptage\volume\200PDF-20000images\0001\0001.pdf;100;2; 20.9903;29.5981;595;839;16;72
In this case 0001.pdf have 3 pages
I try to do the same thing in vbscript files
Result = imageMagick.convert(objFile.name,"-ping","-format","%d%f;%n; %p; %[fx:(w/resolution.x)*2.54]; %[fx:(h/resolution.y)*2.54]; %w;%h; %[depth]; %x\n","info:")
But in this case, the system return only information of first page
Do you have an idea ?
jean-marc