Lines Matching refs:pdf_info
189 PDFInfo *pdf_info,ExceptionInfo *exception) in ReadPDFInfo() argument
226 (void) memset(pdf_info,0,sizeof(*pdf_info)); in ReadPDFInfo()
227 pdf_info->cmyk=image_info->colorspace == CMYKColorspace ? MagickTrue : in ReadPDFInfo()
229 pdf_info->cropbox=IsStringTrue(GetImageOption(image_info,"pdf:use-cropbox")); in ReadPDFInfo()
230 pdf_info->trimbox=IsStringTrue(GetImageOption(image_info,"pdf:use-trimbox")); in ReadPDFInfo()
256 ReadGhostScriptXMPProfile(&buffer,&pdf_info->profile); in ReadPDFInfo()
267 (void) sscanf(p,PDFRotate" %lf",&pdf_info->angle); in ReadPDFInfo()
269 if (pdf_info->cmyk == MagickFalse) in ReadPDFInfo()
275 pdf_info->cmyk=MagickTrue; in ReadPDFInfo()
310 if (pdf_info->cropbox != MagickFalse) in ReadPDFInfo()
326 if (pdf_info->trimbox != MagickFalse) in ReadPDFInfo()
356 if ((fabs(bounds.x2-bounds.x1) <= fabs(pdf_info->bounds.x2-pdf_info->bounds.x1)) || in ReadPDFInfo()
357 (fabs(bounds.y2-bounds.y1) <= fabs(pdf_info->bounds.y2-pdf_info->bounds.y1))) in ReadPDFInfo()
359 pdf_info->bounds=bounds; in ReadPDFInfo()
365 static inline void CleanupPDFInfo(PDFInfo *pdf_info) in CleanupPDFInfo() argument
367 if (pdf_info->profile != (StringInfo *) NULL) in CleanupPDFInfo()
368 pdf_info->profile=DestroyStringInfo(pdf_info->profile); in CleanupPDFInfo()
410 pdf_info; in ReadPDFImage() local
481 ReadPDFInfo(image_info,image,&pdf_info,exception); in ReadPDFImage()
486 if ((fabs(pdf_info.bounds.x2-pdf_info.bounds.x1) >= MagickEpsilon) && in ReadPDFImage()
487 (fabs(pdf_info.bounds.y2-pdf_info.bounds.y1) >= MagickEpsilon)) in ReadPDFImage()
490 "%gx%g%+.15g%+.15g",pdf_info.bounds.x2-pdf_info.bounds.x1, in ReadPDFImage()
491 pdf_info.bounds.y2-pdf_info.bounds.y1,pdf_info.bounds.x1, in ReadPDFImage()
492 pdf_info.bounds.y1); in ReadPDFImage()
493 page.width=(size_t) ((ssize_t) ceil((double) ((pdf_info.bounds.x2- in ReadPDFImage()
494 pdf_info.bounds.x1)*image->resolution.x/delta.x)-0.5)); in ReadPDFImage()
495 page.height=(size_t) ((ssize_t) ceil((double) ((pdf_info.bounds.y2- in ReadPDFImage()
496 pdf_info.bounds.y1)*image->resolution.y/delta.y)-0.5)); in ReadPDFImage()
513 CleanupPDFInfo(&pdf_info); in ReadPDFImage()
523 if ((fabs(pdf_info.angle) == 90.0) || (fabs(pdf_info.angle) == 270.0)) in ReadPDFImage()
533 pdf_info.cmyk=MagickFalse; in ReadPDFImage()
543 CleanupPDFInfo(&pdf_info); in ReadPDFImage()
552 CleanupPDFInfo(&pdf_info); in ReadPDFImage()
563 if (pdf_info.cmyk != MagickFalse) in ReadPDFImage()
571 CleanupPDFInfo(&pdf_info); in ReadPDFImage()
586 if (pdf_info.cropbox != MagickFalse) in ReadPDFImage()
588 if (pdf_info.trimbox != MagickFalse) in ReadPDFImage()
678 CleanupPDFInfo(&pdf_info); in ReadPDFImage()
694 if (pdf_info.profile != (StringInfo *) NULL) in ReadPDFImage()
699 (void) SetImageProfile(image,"xmp",pdf_info.profile,exception); in ReadPDFImage()
700 profile=(char *) GetStringInfoDatum(pdf_info.profile); in ReadPDFImage()
704 CleanupPDFInfo(&pdf_info); in ReadPDFImage()