Results 1 to 5 of 5

Thread: Acroread: The document could not be printed - openSUSE 11.3

  1. #1
    Join Date
    Jun 2008
    Location
    home
    Posts
    16

    Default Acroread: The document could not be printed - openSUSE 11.3

    openSUSE 11.3
    Acrobat Reader 9.3.3 (default)

    Since my upgrade to openSUSE 11.3 I have an issue with booklet printing from Acroread and get the following error: "The document could not be printed". (after the process bar)

    1.) "Normal" printing seem to work from Acroread
    2.) Booklet printing from acroread worked for me in previous versions
    3.) I deleted my /home/user/.adobe/Acrobat and tried again
    4.) It turned on "Print as image" in the advanced settings
    5.) I tried this on several different openSUSE 11.3 installations

    It looks like acroread does not have a log or debug mode.

    a.) Any suggestion howto troubleshoot this issue.
    b.) Alternative? Evince can not print booklet, duplex A5.

  2. #2
    Carlos E. R. NNTP User

    Default Re: Acroread: The document could not be printed - openSUSE 11.3

    On 2010-08-17 11:36, moosylog wrote:
    >
    > openSUSE 11.3
    > Acrobat Reader 9.3.3 (default)
    >
    > Since my upgrade to openSUSE 11.3 I have an issue with booklet printing
    > from Acroread and get the following error: "The document could not be
    > printed". (after the process bar)


    I gave up on this feature time ago. Others say it works for them, but to me it is not right.


    > 1.) "Normal" printing seem to work from Acroread
    > 2.) Booklet printing from acroread worked for me in previous versions
    > 3.) I deleted my /home/user/.adobe/Acrobat and tried again
    > 4.) It turned on "Print as image" in the advanced settings
    > 5.) I tried this on several different openSUSE 11.3 installations


    Then it must be a bug. You could try reporting to bugzilla, but as it is closed source... dunno.

    >
    > It looks like acroread does not have a log or debug mode.
    >
    > a.) Any suggestion howto troubleshoot this issue.


    No idea, sorry.

    > b.) Alternative? Evince can not print booklet, duplex A5.


    No, print to ps in acrobat, normal mode. then use cli tools to reflow for booklet:

    psbook rearranges pages into signatures
    psselect selects pages and page ranges
    pstops performs general page rearrangement and selection
    psnup put multiple pages per physical sheet of paper <====
    psresize alter document paper size
    epsffit fits an EPSF file to a given bounding box


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Elessar))

  3. #3
    Join Date
    Jul 2008
    Location
    Netherlands
    Posts
    28

    Default Re: Acroread: The document could not be printed - openSUSE 11.3

    Thanks Carlos for the tip.

    With these utils I've managed to create a CUPS printer, which will create a booklet of the printed document in PDF format and will deliver it by e-mail. Perhaps others can use it as well.

    Using these 2 snippets, it shouldn't take more than a few minutes to set it up.


    CUPS printer definition (just append this to the /etc/cups/printers.conf file)


    <Printer email_as_booklet>
    Info Generic with driver with driver Generic postscript printer
    DeviceURI pipe://usr/local/bin/email_as_booklet
    State Idle
    StateTime 1282132922
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy stop-printer
    </Printer>



    And this is the script /usr/local/bin/email_as_booklet


    #!/bin/bash

    ## Hard-coded domain name of the recepient
    # DOMAIN="@novell.com"
    # DOMAIN="@localhost"

    ## Let the local mailer daemon figure out the domain name
    DOMAIN=""

    ## Send all prints to this specific user
    #RECEPIENT=joe

    ## send the mail to the provided by CUPS, this user has submitted the job
    RECEPIENT="$PIPE_BACKEND_ARGV2"

    MSGTEXT="Dear $RECEPIENT,

    This is the automated CUPS booklet printing facility.

    Please find in the attachment your print formatted as a book

    Regards,
    CUPS
    "

    # ========= Don't touch the script below this line, =============
    # ========= unless you know what you're doing =============
    TMP=/tmp
    OUTPUTTMP=$TMP/$$.ps
    OUTPUTPS=$TMP/$$.booklet.ps
    OUTPUTPDF=$TMP/$$.booklet.pdf


    # LOG=$TMP/$$.log
    # echo "Command line: \"$@\"" >> $LOG
    # env >> $LOG

    cat - > "$OUTPUTTMP"
    psbook "$OUTPUTTMP" | psnup -2 > "$OUTPUTPS"
    ps2pdf "$OUTPUTPS" "$OUTPUTPDF"

    # for f in "$OUTPUTPDF" "$OUTPUTPS" "$LOG"
    for f in "$OUTPUTPDF"
    do
    [ -f "$f" ] && ATTACHMENTS="$ATTACHMENTS -a $f"
    done

    mailx \
    $ATTACHMENTS \
    -s "CUPS booklet printer: job $PIPE_BACKEND_ARGV1 by $PIPE_BACKEND_ARGV2: $PIPE_BACKEND_ARGV3" \
    ${RECEPIENT}${DOMAIN} <<EOF
    $MSGTEXT
    EOF

    rm "$OUTPUTPS" "$OUTPUTTMP" "$OUTPUTPDF"



    Don't forget to

    chmod a+x /usr/local/bin/email_as_booklet



    Don't forget to restart CUPS...

    /etc/init.d/cups restart

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,853
    Blog Entries
    14

    Default Re: Acroread: The document could not be printed - openSUSE 11.3

    Cheers @gnyers !!! You deliver a script, that does almost everything I'm having to write a script for. I have to send the single files to the printer, as soon as they are created, this can do the job with some minor alterations. Very nice.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Carlos E. R. NNTP User

    Default Re: Acroread: The document could not be printed - openSUSE 11.3

    On 2010-08-18 15:06, gnyers wrote:
    >
    > Thanks Carlos for the tip.


    Welcome :-)

    > With these utils I've managed to create a CUPS printer, which will
    > create a booklet of the printed document in PDF format and will deliver
    > it by e-mail. Perhaps others can use it as well.


    Well, well. That sure is interesting :-)

    Saved. It can be adapted for other jobs, surely.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Elessar))

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •