compression;
const char
+ *option,
*value;
double
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"<<\n");
if (LocaleCompare(image_info->magick,"PDFA") != 0)
- (void) FormatLocaleString(buffer,MagickPathExtent,"/Pages %.20g 0 R\n",(double)
- object+1);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"/Pages %.20g 0 R\n",
+ (double) object+1);
else
{
(void) FormatLocaleString(buffer,MagickPathExtent,"/Metadata %.20g 0 R\n",
(double) object+2);
}
(void) WriteBlobString(image,buffer);
- (void) WriteBlobString(image,"/Type /Catalog\n");
+ (void) WriteBlobString(image,"/Type /Catalog");
+ option=GetImageOption(image_info,"pdf:page-direction");
+ if ((option != (const char *) NULL) &&
+ (LocaleCompare(option,"right-to-left") != MagickFalse))
+ (void) WriteBlobString(image,"/ViewerPreferences<</PageDirection/R2L>>\n");
+ (void) WriteBlobString(image,"\n");
(void) WriteBlobString(image,">>\n");
(void) WriteBlobString(image,"endobj\n");
GetPathComponent(image->filename,BasePath,basename);
XMPProfileMagick,modify_date,create_date,timestamp,
GetMagickVersion(&version),EscapeParenthesis(basename),
GetMagickVersion(&version));
- (void) FormatLocaleString(buffer,MagickPathExtent,"/Length %.20g\n",(double)
- i);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"/Length %.20g\n",
+ (double) i);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"/Type /Metadata\n");
(void) WriteBlobString(image,">>\nstream\n");
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"<<\n");
(void) WriteBlobString(image,"/Type /Pages\n");
- (void) FormatLocaleString(buffer,MagickPathExtent,"/Kids [ %.20g 0 R ",(double)
- object+1);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"/Kids [ %.20g 0 R ",
+ (double) object+1);
(void) WriteBlobString(image,buffer);
count=(ssize_t) (pages_id+ObjectsPerImage+1);
if (image_info->adjoin != MagickFalse)
resolution.y=(double) ((size_t) (100.0*2.54*resolution.y+0.5)/100.0);
}
SetGeometry(image,&geometry);
- (void) FormatLocaleString(page_geometry,MagickPathExtent,"%.20gx%.20g",(double)
- image->columns,(double) image->rows);
+ (void) FormatLocaleString(page_geometry,MagickPathExtent,"%.20gx%.20g",
+ (double) image->columns,(double) image->rows);
if (image_info->page != (char *) NULL)
(void) CopyMagickString(page_geometry,image_info->page,MagickPathExtent);
else
else
if ((image->gravity != UndefinedGravity) &&
(LocaleCompare(image_info->magick,"PDF") == 0))
- (void) CopyMagickString(page_geometry,PSPageGeometry,MagickPathExtent);
+ (void) CopyMagickString(page_geometry,PSPageGeometry,
+ MagickPathExtent);
(void) ConcatenateMagickString(page_geometry,">",MagickPathExtent);
(void) ParseMetaGeometry(page_geometry,&geometry.x,&geometry.y,
&geometry.width,&geometry.height);
(double) geometry.x,(double) (geometry.y+geometry.height+i*pointsize+
12));
(void) WriteBlobString(image,buffer);
- (void) FormatLocaleString(buffer,MagickPathExtent,"(%s) Tj\n",labels[i]);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"(%s) Tj\n",
+ labels[i]);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"ET\n");
labels[i]=DestroyString(labels[i]);
}
- (void) FormatLocaleString(buffer,MagickPathExtent,"%g 0 0 %g %.20g %.20g cm\n",
- scale.x,scale.y,(double) geometry.x,(double) geometry.y);
+ (void) FormatLocaleString(buffer,MagickPathExtent,
+ "%g 0 0 %g %.20g %.20g cm\n",scale.x,scale.y,(double) geometry.x,
+ (double) geometry.y);
(void) WriteBlobString(image,buffer);
(void) FormatLocaleString(buffer,MagickPathExtent,"/Im%.20g Do\n",(double)
image->scene);
(void) FormatLocaleString(buffer,MagickPathExtent,"%.20g 0 obj\n",(double)
object);
(void) WriteBlobString(image,buffer);
- (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double) offset);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",
+ (double) offset);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"endobj\n");
/*
}
case ZipCompression:
{
- (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,"FlateDecode");
+ (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,
+ "FlateDecode");
break;
}
case FaxCompression:
(void) FormatLocaleString(buffer,MagickPathExtent,"%.20g 0 obj\n",(double)
object);
(void) WriteBlobString(image,buffer);
- (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double) offset);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double)
+ offset);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"endobj\n");
/*
{
case NoCompression:
{
- (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,"ASCII85Decode");
+ (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,
+ "ASCII85Decode");
break;
}
case JPEGCompression:
}
case ZipCompression:
{
- (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,"FlateDecode");
+ (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,
+ "FlateDecode");
break;
}
case FaxCompression:
(void) FormatLocaleString(buffer,MagickPathExtent,"%.20g 0 obj\n",(double)
object);
(void) WriteBlobString(image,buffer);
- (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double) offset);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double)
+ offset);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"endobj\n");
xref[object++]=TellBlob(image);
}
case LZWCompression:
{
- (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,"LZWDecode");
+ (void) FormatLocaleString(buffer,MagickPathExtent,CFormat,
+ "LZWDecode");
break;
}
case ZipCompression:
}
}
(void) WriteBlobString(image,buffer);
- (void) FormatLocaleString(buffer,MagickPathExtent,"/Width %.20g\n",(double)
- image->columns);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"/Width %.20g\n",
+ (double) image->columns);
(void) WriteBlobString(image,buffer);
(void) FormatLocaleString(buffer,MagickPathExtent,"/Height %.20g\n",
(double) image->rows);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"/ColorSpace /DeviceGray\n");
- (void) FormatLocaleString(buffer,MagickPathExtent,"/BitsPerComponent %d\n",
- (compression == FaxCompression) || (compression == Group4Compression)
- ? 1 : 8);
+ (void) FormatLocaleString(buffer,MagickPathExtent,
+ "/BitsPerComponent %d\n",(compression == FaxCompression) ||
+ (compression == Group4Compression) ? 1 : 8);
(void) WriteBlobString(image,buffer);
(void) FormatLocaleString(buffer,MagickPathExtent,"/Length %.20g 0 R\n",
(double) object+1);
(void) FormatLocaleString(buffer,MagickPathExtent,"%.20g 0 obj\n",(double)
object);
(void) WriteBlobString(image,buffer);
- (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double) offset);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g\n",(double)
+ offset);
(void) WriteBlobString(image,buffer);
(void) WriteBlobString(image,"endobj\n");
if (GetNextImageInList(image) == (Image *) NULL)
(void) FormatLocaleString(date,MagickPathExtent,"D:%04d%02d%02d%02d%02d%02d",
local_time.tm_year+1900,local_time.tm_mon+1,local_time.tm_mday,
local_time.tm_hour,local_time.tm_min,local_time.tm_sec);
- (void) FormatLocaleString(buffer,MagickPathExtent,"/CreationDate (%s)\n",date);
+ (void) FormatLocaleString(buffer,MagickPathExtent,"/CreationDate (%s)\n",
+ date);
(void) WriteBlobString(image,buffer);
(void) FormatLocaleString(buffer,MagickPathExtent,"/ModDate (%s)\n",date);
(void) WriteBlobString(image,buffer);