My InDesign to PDF script ignores warnings, but I need to change that.

Hello,
I have a script here that converts InDesign Docs to PDF files.
It works fine and was created to make bulk pdf's regardles of missing images.
Now I want to revise it so that it does stop for missing fonts and images.
This script also was built for quark and I can see where I could remove the supress all warnings dialog to remove it for the quark part, but I can't figure out where that warning is in the InDesign part to remove it.
Here is the script: If anyone can help me find out where this line of code is that I could remove, so that the script does stop if there are missing fonts and images, that would be great!!
property Babs_Folder : "Babs PDF Folder"
global deskPath
global PathToFolder
global PathToFolder2
global tempPictures
on open thefiles
    tell application "Finder"
        activate
        set tempPictures to (every item of (get selection)) -- MUST GET BEFORE MAKING FOLDERS
        if not (exists folder Babs_Folder) then make new folder with properties {name:Babs_Folder}
        set deskPath to desktop as text
        set PathToFolder to POSIX path of (deskPath & Babs_Folder)
        set PathToFolder2 to deskPath & Babs_Folder & ":"
    end tell
    my openfiles()
    say "Finished"
end open
on openfiles()
    try
        tell application "Finder"
            repeat with LoopFiles in tempPictures
                set foundImages to {}
                if kind of LoopFiles = "Folder" then
                    try
                        set foundImages to files of entire contents of LoopFiles as list
                    on error
                        set foundImages to files of entire contents of LoopFiles
                    end try
                else
                    if kind of LoopFiles is not in {"Volume", "Disk Image", "Application", "Web Internet Location", "Document", "Text Clipping"} then
                        set end of foundImages to LoopFiles
                    end if
                end if
                --set WorkingFile to item i of fileList
                repeat with WorkingFile in foundImages
                    if not ((kind of WorkingFile starts with "Quark") or (kind of WorkingFile starts with "InDesign")) then
                        activate
                        display dialog "This file is not an InDesign or Quark document!" buttons "Skipping" default button "Skipping" with icon 0 giving up after 1
                    else
                        --Determine whether to use InDesign subroutines or Quark subroutines
                        if (kind of WorkingFile starts with "InDesign") then -- Process as InDesign
                            my createInDesignPDF(WorkingFile, PathToFolder2)
                        else -- Process as Quark
                            my createQuarkPDF(WorkingFile)
                        end if
                    end if
                end repeat
            end repeat
        end tell
    on error errmsg
        display dialog "OpenFiles." & return & errmsg giving up after 20
    end try
end openfiles
on createInDesignPDF(WorkingFile, savePath)
    set x to 0
    repeat
        if x = 0 then
            set newpart to ""
        else
            set newpart to " " & x
        end if
        tell application "Finder"
            set tempname to my add_extension(WorkingFile, newpart, "pdf")
            if not (exists file tempname in folder Babs_Folder) then exit repeat
        end tell
        set x to x + 1
    end repeat
    tell application "Adobe InDesign CS3"
        try
            try
                set user interaction level of script preferences to never interact
            end try
            open WorkingFile as alias
            delay 2
            repeat
                if exists document 1 then exit repeat
                delay 0.2
            end repeat
            set theProps to properties of PDF export preset "[Press Quality]"
            set newProps to {view PDF:false, crop marks:false, bleed marks:false, color bars:false, registration marks:false} & theProps
            set oldProps to properties of PDF export preferences
            set properties of PDF export preferences to newProps
            export front document format PDF type to (savePath & tempname) without showing options
            set properties of PDF export preferences to oldProps
            delay 1
            tell documents to close saving no
            try
                set user interaction level of script preferences to interact with all
            end try
        on error errmsg
            display dialog "CreateIndesignPDF." & return & errmsg giving up after 20
        end try
    end tell
end createInDesignPDF
on createQuarkPDF(WorkingFile)
    try
        set x to 0
        repeat
            if x = 0 then
                set newpart to ""
            else
                set newpart to " " & x
            end if
            tell application "Finder"
                set tempname to my add_extension(WorkingFile, newpart, "pdf")
                if not (exists file tempname in folder Babs_Folder) then exit repeat
            end tell
            set x to x + 1
        end repeat
        tell application "QuarkXPress"
            activate
            open WorkingFile as alias with Suppress All Warnings
            tell application "System Events" to tell process "QuarkXPress"
                click menu item "Layout as PDF..." of menu 1 of menu item "Export" of menu 1 of menu bar item "File" of menu bar 1
                delay 1
                keystroke tempname
                delay 1
                keystroke "G" using {shift down, command down}
                delay 1
                keystroke PathToFolder
                delay 1
                click button "Go" of sheet 1 of window "Export as PDF"
            end tell
            repeat 2 times
                delay 1
                activate
                tell application "System Events" to tell process "QuarkXPress"
                    try
                        if exists button "OK" of window 1 then
                            click button "OK" of window 1
                        end if
                    end try
                end tell
            end repeat
            delay 1
            tell application "System Events" to tell process "QuarkXPress"
                try
                    click button "Save" of window "Export as PDF"
                end try
            end tell
            repeat 4 times
                delay 1
                activate
                tell application "System Events" to tell process "QuarkXPress"
                    try
                        if exists button "OK" of window 1 then
                            click button "OK" of window 1
                        end if
                    end try
                    try
                        if exists button "List Profiles" of window 1 then
                            click button "Continue" of window 1
                        end if
                    end try
                end tell
            end repeat
            delay 2
            close front document saving no
        end tell
    on error errmsg
        display dialog "CreateQuarkPDF." & return & errmsg giving up after 20
    end try
end createQuarkPDF
on add_extension(WorkingFile, new_part, new_extension)
    try
        set this_info to info for WorkingFile as alias
        set this_name to the name of this_info
        set this_extension to the name extension of this_info
        if this_extension is missing value then
            set the default_name to this_name
        else
            set the default_name to text 1 thru -((length of this_extension) + 2) of this_name
        end if
        return (the default_name & new_part & "." & the new_extension)
    on error errmsg
        display dialog "add extension " & return & errmsg
    end try
end add_extension
thanks!!!
babs

Hello,
OK-I had then blew it... ;-(
I was playing with a combination of removing (commenting out those two try areas you suggested), and that didn't do it on its own. It didn't do anything, it just said finished.
Then I found this in the dictionary ( set alert missing images to true) and added it to the script below. See my changes in Bold.
At one point, I was able to get the missing images dialog box. Then I don't know what happened, I think I tried to turn one of the try areas back on to test it, and then it stopped giving me that dialog box and only the one being asked in that on error errmsg - display dialog "CreateIndesignPDF." & return & errmsg giving up after 20,  was showing up.
I commented out what I thought I had  changed, but even after compiling and re-saving, I can't seem to get the missing images dialog box to show???
any thoughts?
thanks!!!
babs
property Babs_Folder : "Babs PDF Folder"
global deskPath
global PathToFolder
global PathToFolder2
global tempPictures
on open thefiles
    tell application "Finder"
        activate
        set tempPictures to (every item of (get selection)) -- MUST GET BEFORE MAKING FOLDERS
        if not (exists folder Babs_Folder) then make new folder with properties {name:Babs_Folder}
        set deskPath to desktop as text
        set PathToFolder to POSIX path of (deskPath & Babs_Folder)
        set PathToFolder2 to deskPath & Babs_Folder & ":"
    end tell
    my openfiles()
    say "Finished"
end open
on openfiles()
    try
        tell application "Finder"
            repeat with LoopFiles in tempPictures
                set foundImages to {}
                if kind of LoopFiles = "Folder" then
                    try
                        set foundImages to files of entire contents of LoopFiles as list
                    on error
                        set foundImages to files of entire contents of LoopFiles
                    end try
                else
                    if kind of LoopFiles is not in {"Volume", "Disk Image", "Application", "Web Internet Location", "Document", "Text Clipping"} then
                        set end of foundImages to LoopFiles
                    end if
                end if
                --set WorkingFile to item i of fileList
                repeat with WorkingFile in foundImages
                    if not ((kind of WorkingFile starts with "Quark") or (kind of WorkingFile starts with "InDesign")) then
                        activate
                        display dialog "This file is not an InDesign or Quark document!" buttons "Skipping" default button "Skipping" with icon 0 giving up after 1
                    else
                        --Determine whether to use InDesign subroutines or Quark subroutines
                        if (kind of WorkingFile starts with "InDesign") then -- Process as InDesign
                            my createInDesignPDF(WorkingFile, PathToFolder2)
                        else -- Process as Quark
                            my createQuarkPDF(WorkingFile)
                        end if
                    end if
                end repeat
            end repeat
        end tell
    on error errmsg
        display dialog "OpenFiles." & return & errmsg giving up after 20
    end try
end openfiles
on createInDesignPDF(WorkingFile, savePath)
    set x to 0
    repeat
        if x = 0 then
            set newpart to ""
        else
            set newpart to " " & x
        end if
        tell application "Finder"
            set tempname to my add_extension(WorkingFile, newpart, "pdf")
            if not (exists file tempname in folder Babs_Folder) then exit repeat
        end tell
        set x to x + 1
    end repeat
    tell application "Adobe InDesign CS3"
        try
           --try
            --set user interaction level of script preferences to never interact
            --end try
            open WorkingFile as alias
            set alert missing images to true
            delay 2
            repeat
                if exists document 1 then exit repeat
                delay 0.2
            end repeat
            set theProps to properties of PDF export preset "[Press Quality]"
            set newProps to {view PDF:false, crop marks:false, bleed marks:false, color bars:false, registration marks:false} & theProps
            set oldProps to properties of PDF export preferences
            set properties of PDF export preferences to newProps
            export front document format PDF type to (savePath & tempname) without showing options
            set properties of PDF export preferences to oldProps
            delay 1
            tell documents to close saving no
            --try
            --set user interaction level of script preferences to interact with all
            --end try
        on error errmsg
            display dialog "CreateIndesignPDF." & return & errmsg giving up after 20
        end try
    end tell
end createInDesignPDF
on createQuarkPDF(WorkingFile)
    try
        set x to 0
        repeat
            if x = 0 then
                set newpart to ""
            else
                set newpart to " " & x
            end if
            tell application "Finder"
                set tempname to my add_extension(WorkingFile, newpart, "pdf")
                if not (exists file tempname in folder Babs_Folder) then exit repeat
            end tell
            set x to x + 1
        end repeat
        tell application "QuarkXPress"
            activate
            open WorkingFile as alias with Suppress All Warnings
            tell application "System Events" to tell process "QuarkXPress"
                click menu item "Layout as PDF..." of menu 1 of menu item "Export" of menu 1 of menu bar item "File" of menu bar 1
                delay 1
                keystroke tempname
                delay 1
                keystroke "G" using {shift down, command down}
                delay 1
                keystroke PathToFolder
                delay 1
                click button "Go" of sheet 1 of window "Export as PDF"
            end tell
            repeat 2 times
                delay 1
                activate
                tell application "System Events" to tell process "QuarkXPress"
                    try
                        if exists button "OK" of window 1 then
                            click button "OK" of window 1
                        end if
                    end try
                end tell
            end repeat
            delay 1
            tell application "System Events" to tell process "QuarkXPress"
                try
                    click button "Save" of window "Export as PDF"
                end try
            end tell
            repeat 4 times
                delay 1
                activate
                tell application "System Events" to tell process "QuarkXPress"
                    try
                        if exists button "OK" of window 1 then
                            click button "OK" of window 1
                        end if
                    end try
                    try
                        if exists button "List Profiles" of window 1 then
                            click button "Continue" of window 1
                        end if
                    end try
                end tell
            end repeat
            delay 2
            close front document saving no
        end tell
    on error errmsg
        display dialog "CreateQuarkPDF." & return & errmsg giving up after 20
    end try
end createQuarkPDF
on add_extension(WorkingFile, new_part, new_extension)
    try
        set this_info to info for WorkingFile as alias
        set this_name to the name of this_info
        set this_extension to the name extension of this_info
        if this_extension is missing value then
            set the default_name to this_name
        else
            set the default_name to text 1 thru -((length of this_extension) + 2) of this_name
        end if
        return (the default_name & new_part & "." & the new_extension)
    on error errmsg
        display dialog "add extension " & return & errmsg
    end try
end add_extension

Similar Messages

  • I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?

    I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?

    See this thread:
    http://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q19 5078.aspx

  • HT201363 I forgot my security question answer and i dont have a rescue email so i cant change them but i know my apple id password and can accses my account but i need to change my security questions

    I forgot my security question answer and i dont have a rescue email so i cant change them but i know my apple id password and can accses my account but i need to change my security questions

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (115016)

  • I have aunlocked iphone 3 but i use it with straightalk the connection for the wii fii is att but i need to change the settings how can i change tje wii fii settings

    I have a unlocked iphone 3 but the wii fii wont work its set through att i need to change it for straightalk i tried a master reset but didnt work

    WiFi has nothing to do with the cellular carrier. Perhaps you can explain the problem better?

  • TS3212 i downloaded iphone 7 onto my windows 8 ultrapad but apparently need an app that will unlock .dmg to run it... any suggestions?

    i just downloaded iphone 10.7 onto my new Dell windows 8 based XPS12 ultabook but apparently need a tool to open the .dmg format... Suggestions?

    DWR49 wrote:
    i just downloaded iphone 10.7
    Do you mean iTunes 10.7? and it is a .dmg file? That is for Mac OS X
    You need iTunes for Windows.
    Here -> http://www.apple.com/itunes/

  • E-mail of PDF issue TLINE structure but SOLISTI1 needed

    Hi,
    So far I have done the following. I have prepared a SMARTFORM and an ABAP. My ABAP calls the Smartform and gives the data to the function module “CONVERT_OTF”. This function creates a PDF file from the Smartform data. The output of "CONVERT_OTF" is a table with the format of structure “TLINE”. In a first step I save these data into a PDF file with the function module "GUI_DOWNLOAD".
    Now the issue.
    In the second step I am trying to send the output with the function “SO_DOCUMENT_SEND_API1”. The function is recommended by SAP for release 6.4 instead of the former function "SO_NEW_DOCUMENT_ATT_SEND_API1".
    The attachment must be delivered either with the structure “SOLISTI1” or “SOLIX” to be sent with the e-mail function “SO_DOCUMENT_SEND_API1”. I have tried to put my data with structure TLINE into the function. In these case I get short dumps. If I put the output of the function “CONVERT_OTF” in a table with the format “SOLISTI1” instead of a table with structure “TLINE” a PDF file is still created and also send out with the e-mail function, but the file can’t be opened anymore. Acrobat delivers an error message that the file is damaged.
    I have tried to convert the file with structure TLINE in a hexadecimal file with structure SOLIX. For this purpose I used the function “TABLE_COMPRESS”. This worked fine. But the file which has been sent by the e-mail was still damaged. Even if I have downloaded the file I got the message that the file was damaged.
    Are there any other suggestions how the attachment could be sent instead of using the function “SO_DOCUMENT_SEND_API1”? Is there a function available, which could be used to sent attachments with structure TLINE? Or are there any suggestions, how I can convert my smartform output in a SOLIX or SOLISTI1 structure?
    Thank you and best regards
    Karsten

    Hi Arold,
    <b>1</b>.
    Have a look at this program.
    This program is sending PDF file as attachment thru mail
    <b>2</b>.
    REPORT  zvenkat_mail.
    TABLES :
       tsp01.
    Itabs and variables .
    *Tables
    DATA:
       BEGIN OF i_mard OCCURS 0,
         matnr TYPE mard-matnr,
         werks TYPE mard-werks,
         lgort TYPE mard-lgort,
         labst TYPE mard-labst,
         umlme TYPE mard-umlme,
         insme TYPE mard-insme,
         einme TYPE mard-einme,
       END OF i_mard.
    DATA :
       g_sy_spono LIKE sy-spono.
    Mail related Variables and i tabs.
    DATA:
       w_subject       LIKE sodocchgi1,
       i_pack_list     LIKE sopcklsti1 OCCURS  1  WITH HEADER LINE,
       i_objhead       LIKE solisti1   OCCURS  1  WITH HEADER LINE,
       i_contents_text LIKE solisti1   OCCURS 10  WITH HEADER LINE,
       i_cont_bin      LIKE solisti1   OCCURS 10  WITH HEADER LINE,
       i_objhex        LIKE solix      OCCURS 10  WITH HEADER LINE,
       i_receiver      LIKE somlreci1  OCCURS  1  WITH HEADER LINE,
       i_listobject    LIKE abaplist   OCCURS  1  WITH HEADER LINE,
       pdf             LIKE tline      OCCURS 100 WITH HEADER LINE,
       content_out     LIKE solisti1   OCCURS 0 WITH HEADER LINE.
    DATA:
       tab_lines       TYPE i,
       doc_size        TYPE i,
       att_type        LIKE soodk-objtp,
       obj_desc        LIKE w_subject-obj_descr,
       sent_to_all     LIKE sonv-flag,
       client          LIKE tst01-dclient,
       name            LIKE tst01-dname,
       objtype         LIKE rststype-type,
       type            LIKE rststype-type,
       is_otf          TYPE c ,
       no_of_bytes     TYPE i,
       pdf_spoolid     LIKE tsp01-rqident,
       jobname         LIKE tbtcjob-jobname,
       jobcount        LIKE tbtcjob-jobcount,
       pn_begda        LIKE sy-datum,
       val(1)          TYPE c,
       pripar          TYPE pri_params,
       arcpar          TYPE arc_params,
       lay             TYPE pri_params-paart,
       lines           TYPE pri_params-linct,
       cols            TYPE pri_params-linsz,
       spool_name      TYPE pri_params-plist.
    *&      START-OF-SELECTION.
    START-OF-SELECTION.
      PERFORM get_data_from_database.
      PERFORM output_for_pdf.
    *&      END-OF-SELECTION.
    END-OF-SELECTION.
      PERFORM send_mail..
    *&      Form  get_data_from_database
    FORM get_data_from_database .
      SELECT matnr
             werks
             lgort
             labst
             umlme
             insme
             einme
        FROM mard
        INTO TABLE i_mard
        UP TO 20 ROWS.
    ENDFORM.                    " get_data_from_database
    *&      Form  output_for_pdf
    FORM output_for_pdf .
      PERFORM get_print_params.
      LOOP AT i_mard.
        WRITE:/ sy-vline, i_mard-matnr,
                sy-vline, i_mard-werks,
                sy-vline, i_mard-lgort,
                sy-vline, i_mard-labst,
                sy-vline, i_mard-umlme,
                sy-vline, i_mard-insme,
                sy-vline, i_mard-einme,
                sy-vline.
      ENDLOOP.
      ULINE .
      g_sy_spono = sy-spono.
      NEW-PAGE PRINT OFF.
      CALL FUNCTION 'ABAP4_COMMIT_WORK'.
    ENDFORM.                    " output_for_pdf
    *&      Form  send_mail
    FORM send_mail .
      PERFORM mail_without_attachment.
      PERFORM mail_with_pdf_attachment.
      PERFORM mail_with_exel_attachment.
      PERFORM mail_with_text_attachment.
    ENDFORM.                    " send_mail
    *&      Form  mail_with_pdf_attachment
    FORM mail_with_pdf_attachment .
      CLEAR :w_subject,
             sent_to_all,
             i_pack_list[],
             i_objhead[],
             i_cont_bin[],
             i_contents_text[],
             i_receiver[].
      i_cont_bin = '  |  '.
      APPEND i_cont_bin.
    Subject of the mail.
      obj_desc  = 'Hello SDN Friends ' .
      w_subject-obj_name  = 'MAIL_ALI'.
      w_subject-obj_descr = obj_desc.
    Body of the mail
      DATA :head_desc LIKE i_contents_text,
            body_desc LIKE i_contents_text.
      i_contents_text = space.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      CONCATENATE
      'This mail has been generated for Test purpose.'
      'Please dont hesitate to ask any type of question in the forum.'
      INTO body_desc
      SEPARATED BY space.
      i_contents_text = body_desc.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      CLEAR body_desc.
      i_contents_text = 'Thank You.'.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      i_contents_text = 'Fellow SDN member,'.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      i_contents_text = 'Venkat.O'.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      i_contents_text = space.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
      CONCATENATE '(Note: This is system generated message, please'
                  'do not reply'
                  'to this Email.)'
               INTO i_contents_text
               SEPARATED BY space.
      APPEND i_contents_text.
      CLEAR  i_contents_text.
    Write Packing List (Body)
      DESCRIBE TABLE i_contents_text LINES tab_lines.
      READ     TABLE i_contents_text INDEX tab_lines.
      w_subject-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
      i_contents_text ).
      CLEAR i_pack_list-transf_bin.
      i_pack_list-head_start = 1.
      i_pack_list-head_num   = 0.
      i_pack_list-body_start = 1.
      i_pack_list-body_num   = tab_lines.
      i_pack_list-doc_type   = 'RAW'.
      APPEND i_pack_list.
      CLEAR  i_pack_list.
    Create receiver list
      i_receiver-receiver = '[email protected]'..
      i_receiver-rec_type = 'U'.
      APPEND i_receiver.
      CLEAR  i_receiver.
    Select query for Spool requests
      REFRESH content_out.
      IF sy-subrc = 0.
        SELECT  SINGLE *
          FROM  tsp01
          WHERE rqident = g_sy_spono.
        IF sy-subrc <> 0.
          MESSAGE s000(0k) WITH 'Spool Number does not exist'.
          EXIT.
        ELSE.
          client = tsp01-rqclient.
          name   = tsp01-rqo1name.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
        EXPORTING
          authority     = 'SP01'
          client        = client
          name          = name
          part          = 1
        IMPORTING
          type          = type
          objtype       = objtype
        EXCEPTIONS
          fb_error      = 1
          fb_rsts_other = 2
          no_object     = 3
          no_permission = 4
          OTHERS        = 5.
      IF objtype(3) = 'OTF'.
        is_otf = 'X'.
      ELSE.
        is_otf = space.
      ENDIF.
    Convert Spool job to PDF
      IF is_otf = 'X'.
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = tsp01-rqident "Spool req number
            no_dialog                = ' '
          IMPORTING
            pdf_bytecount            = no_of_bytes
            pdf_spoolid              = pdf_spoolid
            btc_jobname              = jobname
            btc_jobcount             = jobcount
          TABLES
            pdf                      = pdf
          EXCEPTIONS
            err_no_otf_spooljob      = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_dstdevice        = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
        CASE sy-subrc.
          WHEN 0.
          WHEN 1.
            MESSAGE s000(0k) WITH 'No OTF Spool Job'.
            EXIT.
          WHEN 2.
            MESSAGE s000(0k) WITH 'Spool Number does not exist'.
            EXIT.
          WHEN 3.
            MESSAGE s000(0k) WITH 'No permission for spool'.
            EXIT.
          WHEN OTHERS.
            MESSAGE s000(0k) WITH 'Error in Function CONVERT_OTFSPOOLJOB_2_PDF'.
            EXIT.
        ENDCASE.
      ELSE.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = tsp01-rqident
            no_dialog                = ' '
          IMPORTING
            pdf_bytecount            = no_of_bytes
            pdf_spoolid              = pdf_spoolid
            btc_jobname              = jobname
            btc_jobcount             = jobcount
          TABLES
            pdf                      = pdf
          EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
        CASE sy-subrc.
          WHEN 0.
          WHEN 1.
            MESSAGE s000(0k) WITH 'No ABAP Spool Job'.
            EXIT.
          WHEN 2.
            MESSAGE s000(0k) WITH 'Spool Number does not exist'.
            EXIT.
          WHEN 3.
            MESSAGE s000(0k) WITH 'No permission for spool'.
            EXIT.
          WHEN OTHERS.
            MESSAGE s000(0k)
               WITH 'Error in Function CONVERT_ABAPSPOOLJOB_2_PDF'.
            EXIT.
        ENDCASE.
      ENDIF.
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_src              = 134
          line_width_dst              = 255
        TABLES
          content_in                  = pdf
          content_out                 = content_out
        EXCEPTIONS
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          OTHERS                      = 4.
      IF sy-subrc <> 0.
        MESSAGE s000(0k) WITH 'Conversion Failed'.
        EXIT.
      ENDIF.
    ---------------------Create Message Attachment
      DESCRIBE TABLE i_cont_bin LINES tab_lines.
      i_pack_list-transf_bin = 'X'.
      i_pack_list-head_start = tab_lines + 1.
      i_pack_list-head_num   = 0.
      i_pack_list-body_start = tab_lines + 1.
      APPEND LINES OF content_out[] TO i_cont_bin[].
      DESCRIBE TABLE content_out LINES tab_lines.
      i_pack_list-doc_size =  tab_lines * 255.
      i_pack_list-body_num = tab_lines.
      i_pack_list-doc_type = 'PDF'.
      i_pack_list-obj_name = 'ATTACHMENT'.
      i_pack_list-obj_descr = 'Materials and their Quantities' .
      APPEND i_pack_list.
      CLEAR  i_pack_list.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_subject
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = sent_to_all
        TABLES
          packing_list               = i_pack_list
          object_header              = i_objhead
          contents_bin               = i_cont_bin
          contents_txt               = i_contents_text
          receivers                  = i_receiver
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc NE 0.
      ENDIF.
    ENDFORM.                    " mail_with_pdf_attachment
    *&      Form  get_print_params
    FORM get_print_params .
      lay = 'X_65_132'.
      lines = 65.
      cols  = 132.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          in_archive_parameters  = arcpar
          in_parameters          = pripar
          layout                 = lay
          line_count             = lines
          line_size              = cols
          no_dialog              = 'X'
        IMPORTING
          out_archive_parameters = arcpar
          out_parameters         = pripar
          valid                  = val
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF val <> space AND sy-subrc = 0.
        pripar-prrel = space.
        pripar-primm = space.
        NEW-PAGE PRINT ON
          NEW-SECTION
          PARAMETERS pripar
          ARCHIVE PARAMETERS arcpar
          NO DIALOG.
      ENDIF.
    ENDFORM.                    " get_print_params
    I hope it helps u .
    <b>Thanks,
    Venkat.O</b>

  • I have downloaded a pdf from a jounal web site.  After doing this and inserting comments, then saving it, upon opening it again, i can no longer see the text but only the highlight changes that i made

    I am using Adobe Acrobat Pro XI.  I have downloaded a pdf from a journal web site.  I need to review this article and make comments in the text.  After doing this and saving the file, when opening the saved file, I can only see the highlights where I made changes and the list of comments that I made, but I no longer see the original text.  See the example below.  Can anyone help on this?

    I am using Adobe Acrobat Pro XI.  I have downloaded a pdf from a journal web site.  I need to review this article and make comments in the text.  After doing this and saving the file, when opening the saved file, I can only see the highlights where I made changes and the list of comments that I made, but I no longer see the original text.  See the example below.  Can anyone help on this?

  • I have creative cloud photoshop but i need to change to indesign

    I want to change from photoshop to indesign

    Cancel what you have and buy a different, single program, subscription
    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    Cloud Plans https://creative.adobe.com/plans
    -and subscription terms http://www.adobe.com/misc/subscription_terms.html
    NOTE - to not have to pay a cancellation fee you should contact Adobe
    Adobe contact information - http://helpx.adobe.com/contact.html

  • How can I PREVENT imessages and phone records from being deleted? Its good to be able to block things, but I need to know that no content is being deleted either.

    Restrictions allow the requirement of pass code to deletion of Apps, but not of actual phone content. That is only half the solution - if someone wants to communicate with another person badly enough, they will find a way to create a different user account, phone number, etc.regardless of whether or not the number/person is blocked. I need to see ALL communication and ensure nothing can be deleted without a pass code.

    There is no way to do that. If some one is creating new accounts to communicate with you after you've asked them not to, you have a bigger problem. You may want to talk to your local law enforcement about stalking.

  • HT204266 How do I change my App Store setting from us to uk? I don't know how it changed, but I need to change it back?!

    I have a iPad and it changed the settings or maybes I did somehow, but now I can't purchase any more apps while its on the us settings? Where and what do I do? Thanks

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • I made a video on iMovie and exported it but, I need to change some things and it is not in iMovie anymore. How do I get it back for editing?

    Guys I really could use some help

    You may be experiencing the "disappearing project" issue. Projects can be seen in the Finder in their default location (as described by AppleMan1958), but do not appear in the listing of projects in iMovie's Project Library. See this thread for more information, and also the links therein to other threads regarding this issue:
    https://discussions.apple.com/message/21436422#21436422
    Unfortunately, I'm not aware of a resolution to this problem. Hopefully, it's not what you are seeing!
    John

  • I salvaged a late 2006 Mac Pro.It works great but I need to change the administrater password so I can make changes

    I SALVAGE A LATE 2006 MAC PRO FROM A RECYCLING CENTER.IT WORKS GREAT AND I WANT TO SWITCH OVER TO IT.BUT IM LIMITED IN WHAT I CAN DO BECAUSE I CAN'T MAKE CHANGES WITHOUT A PASSWORD. THERES NO WAY OF FINDING THE ORINGNAL ADMINISTRATER.CAN ANYONE HELP  WITHOUT IT COSTING ME ALOT OF MONEY. THANK YOU- -  RECYCLME

    The first thing you should do after acquiring a used computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind.
    If the machine shipped with OS X 10.6, you need the gray installation discs that came with it. If you don't have the discs, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc, hold down the C key at the chime.
    If the machine shipped with OS X 10.7 or later, it should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.

  • I want to download digital stamps but would need to change the size to fit my project. Does keynote have the ability to change picture size?

    I'm trying to find a app that will allow me to change the size of a digital stamp. I have heard that Adobe Photoshop will allow me to do this but that is outside of my price range right now. Would Keynote allow me to do this?

    sorry the website went down for maintenance during my last reply.
    Yes Keynote will work OK as a print application for standard image formats;  TIFF, JPEG, PNG, PICT
    Drag and drop as many graphics as you want on to a page.
    Disply the ruler;   view menu > ruler
    Go into  Keynote menu > Preferences   and set the Ruler to inches or centimeters
    you can then drag a guide line out from the ruler to help size the graphic to the measurement you want
    ruler set to inches to measure a 5" x 3" box

  • Ios 7.0.4 just uploaded and was asked for my password for icloud which was my ex's and that is was phone has I actually have a app ID but I need to change apple ID to mine for icloud

      just uploaded ios 7.0.4 on phone after it was finished it asked for apple ID password for my ex's appleID , how can I change this id on phone to my apple ID seen some old messages but they were for older versions of firmware revision.  Im in barbados and cant access local weather or use locating software because I couldnt enable without password  and she doesnt remember it!!
    thanks jd

    Hey there JohnDent,
    It sounds like your phone is associated with another Apple ID and so you cannot finish setting it up. I found this information for you from the article named:
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    If the previous owner is with you and can access the device
    Ask them to enter their Apple ID and password on the Activate iPhone screen (shown above) to remove the device from their account. You can then proceed through the rest of the device setup process.
    If the previous owner is not present
    Contact them and ask them to follow these steps to remove the device from their account:
    Sign in to their iCloud account at www.icloud.com/find.
    Choose the device from their Find My iPhone device list by clicking All Devices and selecting the correct device.
    Click "Remove from Account" to remove the device from the account.
    After the device has been removed from the previous owner’s account, turn it off by pressing and holding the Sleep/Wake button located on the top right side of the device. Then restart your device and proceed with device setup as you would normally.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • I need access my old photos but I need to change which storage I am using?

    Accessing icloud photos from iPhone

    Sorry but I don't understand what your question is.  What do you need help with?

Maybe you are looking for

  • Can I run CS5 twice?

    I need to run 2 identical versions of CS5 this is so that one can run a batch in the background and yet still edit in the other. Now I have been able to have 2 folders with CS5 on and they both work. However I get this prompt asking "The application

  • ICloud Drive shows 'Encrypted Folder' and 'Encrypted File' instead of correct folder and files names

    On my 2014 MBA (10.10.2), I added a group of folders and files to iCloud Drive in Finder by dragging and dropping.  I do not use disk encryption.  The files are of various types (mostly jpeg/pdf, and a few docx).  I can see the files when I login to

  • Default download manager?

    i've been using GetRight, but it got sceRwed up and i had to retie it to FF. in the interim, DownThemAll took over, but i'd rather not use it and it pops up automatically now. but now that it's configured to play with FF again, how do i set it to tak

  • Need Information ---- Looking to buy

    Hi, This may seem stupid to some...but here goes. I am looking to buy an Ipod but was wondering what the difference was between the Ipod Nano and the Ipod Mini and which everyone felt was the best. I will be using it for everyday use....to put in a d

  • Illegal address in string

    Hi Team, Am trying to send a email using localSMTP pro. I have verified the following link http://www.tutorialspoint.com/java/java_sending_email.htm This is my code     public void sendmail() throws MessagingException {         String to = new String