How do I export pdf from pages via commandline

I have a pages document that I use as a documentation for a library that I've written.  When I release the library I hav been manually exporting the document to PDF, but I'm trying to automate the whole process.
Is there a way to get Pages to convert a .pages package to a .pdf file via bash?

Try Automator or an AppleScript.
I am not sure if Yvan our resident AppleScript expert is still monitoring these forums. Apple has offended him to the point he has gone on strike.
Peter

Similar Messages

  • How to load a PDF from page 1 in IE

    I am currenty working on a fllex based web application that needs to load multiple PDF documents. The pdfs are loaded and displayed properly but after the user scrolls couple of pages/ lines and switches to a new document, IE saves the last visit cursor position of the pdf document. On user revisit to the first PDF the IE loads it from the last cursor position.
    I need to reload the PDF document from Page 1 everytime the user selects to load a pdf document.
    Is there any setting in the Adobe Acrobat Page display settings or in the IE that would help me accomplish my task.
    Please respond ASAP.
    NOTE: The pdf is loaded inside  an IFRAME.
    Thanks,
    -Karun

    > I have a feeling that removing the save button will not be possible.
    You cannot remove the save button, no, but you can replace its execute method with something that, say, pops up a warning to the user instead.
    > Is there any way to just load the file using a URL?
    The ActiveX control definitely loads a URL. See the "src" property of the ActiveX control. If you download the SDK, the ActiveView sample actually loads a PDF from a URL by default.

  • How to send converted PDF from OTF via email

    Hi Experts,
    Greetings! How can I send the PDF file from FM 'CONVERT_OTF' via email?
    I was stuck on this code:
    *--- Convert OTF data to pdf
      CLEAR: i_otf, i_pdf.
      i_otf[] = gs_ssfcrescl-otfdata.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = v_bin_filesize
        TABLES
          otf                   = i_otf
          lines                 = i_pdf
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
      CHECK sy-subrc = 0 AND NOT i_pdf[] IS INITIAL.
    Thanks in advance for the help.

    Hi
    DATA:
    I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE  TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1  OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1  OCCURS 0 WITH HEADER LINE.
    DATA:
      W_OBJHEAD TYPE SOLI_TAB,
      W_CTRLOP TYPE SSFCTRLOP,
      W_COMPOP TYPE SSFCOMPOP,
      W_RETURN TYPE SSFCRESCL,
      W_DOC_CHNG TYPE SODOCCHGI1,
      W_DATA TYPE SODOCCHGI1,
      W_BUFFER TYPE STRING.
    DATA:
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME           = ' '---------> smartform
      IMPORTING
        FM_NAME            = V_FORM_NAME
      EXCEPTIONS
        NO_FORM            = 1
        NO_FUNCTION_MODULE = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION '/1BCDWB/SF00000482'
      EXPORTING
        CONTROL_PARAMETERS = W_CTRLOP
        OUTPUT_OPTIONS     = W_COMPOP
        USER_SETTINGS      = 'X'
      IMPORTING
        JOB_OUTPUT_INFO    = W_RETURN
      EXCEPTIONS
        FORMATTING_ERROR   = 1
        INTERNAL_ERROR     = 2
        SEND_ERROR         = 3
        USER_CANCELED      = 4.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I_OTF[] = W_RETURN-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        FORMAT                = 'PDF'
        MAX_LINEWIDTH         = 132
      IMPORTING
        BIN_FILESIZE          = V_LEN_IN
      TABLES
        OTF                   = I_OTF
        LINES                 = I_TLINE
      EXCEPTIONS
        ERR_MAX_LINEWIDTH     = 1
        ERR_FORMAT            = 2
        ERR_CONV_NOT_POSSIBLE = 3
        ERR_BAD_OTF           = 4.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT I_TLINE.
      TRANSLATE I_TLINE USING '~'.
      CONCATENATE W_BUFFER I_TLINE INTO W_BUFFER.
    ENDLOOP.
    TRANSLATE W_BUFFER USING '~'.
    DO.
      I_RECORD = W_BUFFER.
      APPEND I_RECORD.
      SHIFT W_BUFFER LEFT BY 255 PLACES.
      IF W_BUFFER IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    REFRESH :
      I_RECLIST,
      I_OBJTXT,
      I_OBJBIN,
      I_OBJPACK.
    CLEAR W_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    I_OBJTXT = 'Find attached the output of the smartform.'.
    APPEND I_OBJTXT.
    I_OBJTXT = 'Regards,'.
    APPEND I_OBJTXT.
    I_OBJTXT = 'Sravanthi'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    W_DOC_CHNG-OBJ_NAME = 'Smartform'.
    W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10 .
    W_DOC_CHNG-OBJ_DESCR  = 'Smart form output'.
    W_DOC_CHNG-SENSITIVTY = 'F'.
    W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 1.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE  = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'Smartform'.
    CONCATENATE 'smartform output' 'pdf'
    INTO I_OBJPACK-OBJ_DESCR.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = ' '.---------->email id
    I_RECLIST-EXPRESS  = 'X'.
    I_RECLIST-REC_TYPE  = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = W_DOC_CHNG
        PUT_IN_OUTBOX              = 'X'
        commit_work                = 'X'
      TABLES
        PACKING_LIST               = I_OBJPACK
       CONTENTS_BIN                = I_OBJBIN
        OBJECT_HEADER              = W_OBJHEAD
        CONTENTS_TXT               = I_OBJTXT
        RECEIVERS                  = I_RECLIST
      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.
          WRITE:/ 'Error When Sending the File', sy-subrc.
        ELSE.
          WRITE:/ 'Mail sent'.
        ENDIF.
    After excuting this program check the status of the email in the SOST  transaction
    Regards,
    sravanthi

  • How do I export PDFs from Illustrator at 100% ?

    Hi, I'm a web designer who routinely sends design comps out for client review, developers, etc. Obviously when I build a comp at 960px x 768px, I want the PDF to reflect those EXACT dimensions, when viewed at 100%. Currently, my Acrobat seems to export my PDFs at approx 125% of my intended size. Can anybody please recommend some settings or tips on how to prevent this? Thanks!

    Man, I don't know what I'm doing wrong- 100% looks ginormous. I scaled down to 81% which matches the size of my Illustrator doc at 100%, but even saving the PDF at 81% still...too big.
    I'm beginning to think PDFs are still industry standard for print work but for web...not so much. I hate it how it mangles all my line weights and stuff.
    Anyway, not trying to hate on PDFs in the Acrobat forum, heh. Just kinda sick of showing my work at the wrong size. I'm wondering if it's b/c I'm building at 72dpi in Illustrator, then saving as "best quality" PDFs, which might be changing the pixel dimensions to a 300dpi, therefore changing the proportions. Thoughts?

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • How to open a pdf from pdf target with page no using javascript

    Hi
    How to open a pdf from pdf target with page no using javascript
    Thanks in Advance.

    Hello,
    <p>Web.show_document calling .htm files saved on disk.....</p>
    Francois

  • How can I export songs from my iTunes to a mail program or laptop?

    How can I export songs from my iTunes to a mail program/computer? The songs in question are originals composed by my boyfriend in Garage Band. We have full rights to them, but they import into iTunes like all the other artists songs. His hard drive crashed and I have the only copies. I have no access to my iMac for 2 months while we tour our show and we need them on the tour. We are in dire straights if we can not access these songs and the iPad will not hook up to our equipment. Plus we need to add a track to a promotional video. So how can we access our own music?
    Thanks.

    If they are in the iPad's Music app then the only way to get them out of it is by connecting the iPad to a computer. As they aren't iTunes purchases you won't be able to copy them back to a computer's iTunes via File > Devices > Transfer Purchases, instead you will need a third-party program on the computer to copy them off - there are some listed half-way down this page which should work: https://discussions.apple.com/docs/DOC-3991

  • How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?

    How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?
    When I try to open the document in Illustrator and I convert to CMYK the black font converts to rich black, but to set up for Offset printintg I need the text to be only in Black (100%K).
    The original source of the document is a Microsoft Word file, I have converted the Word file to Pdf in order to setup for OFfset Printing.
    Thanks

    I have tried that way, but the downside is that the fonts are set in gray not in a 100%K, also I have to deal with other fonts that are composites and meant to stay Full Color. I could select text by text and convert to gray but, its a 64 page document and I wouldn't want to make a expensive mistake.

  • How do I place text from Pages in InDesign

    How do I place text from Pages in InDesign?

    You will need to export the text from Indesign as either .rtf or .doc files and import those.
    You can also cut and paste but I assume you have already tried these options and are not happy with the result, but haven't said why.
    Peter

  • How can i export PDF as a Booklet formate in InDesign?

    Hi,
    I am currently working on 48 pages book. Book design is complete and i want to send it to printer as a spread in Booklet formate. how can i export pdf as booklet format?

    In this situation we strongly needed PDF in booklet layout. so is there any suggestion for saving that instead of printing?
    You have to save a postscript file using the Adobe PDF 9.0 PPD, as Eugene is showing in #6, and distill the .ps file to PDF using Distiller.

  • How can I export photos from iphoto to my ipad

    How can I export photos from iphoto to my ipad?

    Like putting every thing else on to your iPad, this is done via iTunes.

  • Canot email in pdf from pages + keynote with iPad air

    I can't email à document in PDF from pages and keynote with iPad air. I reset the iPad an it don't work

    Can you mail the files in any other format at all? Did you try emailing a Pages file as a Pages file or as a Word doc?
    OK. My response was too late. If you can email them in another format, I don't see how the problem could be with the mail app, but I suppose it's possible anyway. I know that you restored the iPad, and this should help, but try resetting all settings.
    Settings>General>Reset>Reset all settings. No data will be lost but all of your settings will have to be entered again.

  • Although I have an Adobe subscription, and Adobe export PDF (from 12/12), I cannot open my Adobe PDF

    Although I have been Adobe subscription, and export PDF from December 12 of 2012, I cannot open my PDF documents. When I attempt to do so, and Adobe screen pops up stating that I have to subscribe, even though Adobe recognizes by subscription from 12/12.
    Would you please fix this problem ?
    Is there anything I can do to fix this problem ? [email protected]

    Could you try these steps:
    Choose Edit > Preferences (Win) or Adobe Reader > Preferences (Mac)
    Click 'Online Services' on the left-hand side
    Sign out of our Adobe ID and sign back in.
    Try to convert your document again.
    If you continue to have trouble, please verify that you can access the service via the web interface.  To do this:
    Open a browser and navigate to http://exportpdf.acrobat.com/signin.html
    Try to log in with your Adobe ID (email address) and password
    Once logged in, follow the on-screen prompts to convert a file
    Let us know if you're still having trouble and we'll try to help!

  • Why are my photos distorted in my PDF from Pages?

    I have a PDF generated from Pages via “Print to PDF” (vs Save as PDF), and 6 out of 10 photos are jumbled. I have never seen this before from Pages, but it looks like a post-script error. Re-saving did not help...any suggestions?
    Thank you!

    I am guessing (you have not provided much detail) that you have used the fancier frames or effects in Pages 5.
    Apple has removed over 90+ features and many of the remaining features are buggy.
    If you had a previous version of Pages, it should still be in your Applications/iWork folder. Use that.
    Peter

  • Export PDF from InDesign Book

    Hi, I have a customer that has huge problems to export PDFs from InDesign Books. He has books with many documents with a total amount of 500-700 pages, when he try to export a PDF InDesign quit unexpectedly. I wrote a script for him that export the PDF from the book without the progress bar, and sometimes it solves the problem but sometimes not, and I have a "out of memory" message. He must export multiple PDF from the same book and then merge those PDF with Acrobat but he has also interactivity sometimes and it's a nightmare to merge PDFs with interactive objects and bookmarks.  Someone of you have experienced the same problem (and maybe has a solution)?  Thank you

    It seems that InDesign saturate the available RAM during the operation of gathering information before start to export, if I restart InDesign each time and export a selection of documents it works. I'm exporting now two separate PDF and it seems to work, but again only if I close and restart InDesign before exporting, I'm working on an iMac with an Intel 2.93 GHz i7 and a total of 8 GB RAM.

Maybe you are looking for

  • Display of secondary cost elements in KSB1

    Hi One of our customers wants to delete the view of Secondary Costs to a particular cost center in Actual View of Cost Line Items (through T Code KSB1). The costs flow to the secondary cost elements based on the activity type carried out. The system

  • URLConnection Time outs

    I get the following exception: java.net.SocketException: Connection reset I am using URLConnection object in my client program to talk to server. Most of the time it works fine but sometime I get the above Error because this server sometimes is very

  • The exception unknown software exception (0x000000d)

    This error occurs when i attempt to share by clicking on disc. The only way to fix this is by repairing the program using the install disk. This will work for a short period of time, but soon it will occur again. I am using premiere elements 4.0 Any

  • Browsers for 5800

    I tested a few browsers on the 5800. What I noticed that virtually all browsers (with the exception of UCWeb) issue a non-changeable WAP user agent which make it impossible to view full sites of e.g. cnn.com, www.smh.com.au, despite the browser is ab

  • Decreasing sensitivity of trackpad

    I have just purchased a mac os x leopard and have not been able to decrease the sensitivity of the trackpad. When I place the cursor over something, simply removing my finger actually moves the cursor off of the chosen spot that I want to click on! I