Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 888479
Collapse All | Expand All

(-)orig-cups-filters-1.28.15/filter/pdftops.c (-4 / +8 lines)
Lines 338-343 Link Here
338
		*ptr;			/* Pointer into value */
338
		*ptr;			/* Pointer into value */
339
  const char	*cups_serverbin;	/* CUPS_SERVERBIN environment
339
  const char	*cups_serverbin;	/* CUPS_SERVERBIN environment
340
					   variable */
340
					   variable */
341
  const char	*content_type;		/* CONTENT_TYPE environment variable */
341
  int		duplex, tumble;         /* Duplex settings for PPD-less
342
  int		duplex, tumble;         /* Duplex settings for PPD-less
342
					   printing */
343
					   printing */
343
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
344
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
Lines 621-626 Link Here
621
  * acroread filter...
622
  * acroread filter...
622
  */
623
  */
623
624
625
  content_type = getenv("CONTENT_TYPE");
624
  if (renderer == PDFTOPS)
626
  if (renderer == PDFTOPS)
625
  {
627
  {
626
    pdf_argv[0] = (char *)"pdftops";
628
    pdf_argv[0] = (char *)"pdftops";
Lines 781-788 Link Here
781
    *  Use the page sizes of the original PDF document, this way documents
783
    *  Use the page sizes of the original PDF document, this way documents
782
    *  which contain pages of different sizes can be printed correctly
784
    *  which contain pages of different sizes can be printed correctly
783
    */
785
    */
784
786
    /* Only do this for unprocessed PDF files */
785
    pdf_argv[pdf_argc++] = (char *)"-origpagesizes";
787
    if (content_type && !strstr (content_type, "/vnd.cups-"))
788
      pdf_argv[pdf_argc++] = (char *)"-origpagesizes";
786
    pdf_argv[pdf_argc++] = (char *)"-nocenter";
789
    pdf_argv[pdf_argc++] = (char *)"-nocenter";
787
  }
790
  }
788
  else
791
  else
Lines 793-800 Link Here
793
    * Use the page sizes of the original PDF document, this way documents
796
    * Use the page sizes of the original PDF document, this way documents
794
    * which contain pages of different sizes can be printed correctly
797
    * which contain pages of different sizes can be printed correctly
795
    */
798
    */
796
799
    /* Only do this for unprocessed PDF files */
797
    pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize";
800
    if (content_type && !strstr (content_type, "/vnd.cups-"))
801
      pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize";
798
  }
802
  }
799
803
800
 /*
804
 /*

Return to bug 888479