[JS] Export whole document as a snippet

Hi,
I'm trying to export a whole document as a snippet.  The code works for a page item, i.e
myPageItem.exportFile(ExportFormat.INDESIGN_SNIPPET
but not for a document.  i.e , new File("/D/test/templates/working.inds"));
myDoc.exportFile(ExportFormat.INDESIGN_SNIPPET ,new File("/D/test/templates/working.inds"));
It errors with the specified object does not support the export format.
I thought you could export a whole document as a snippet?
Any Ideas?
thanks
Richard

Thank you for your response.
You can do the whole page or selection of items to a snippet via the UI though.  You just have to select all the page items and then do export and that works great.
While I can get a collection of page items in the script, it has no method for doing exportFile on the array.  If the interface and UI has the ability to export multiple page items to a snippet, surely I should be able to some how via the script.

Similar Messages

  • My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.

    My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.

    Are your  links up to date? What settings did you use?

  • 'Unknown Error' while exporting a document as '.DOC'

    I'm using Pages '09 on a Mac Mini running OS-X Lion.  I have a 66-page document, originally a .DOC file which I modified and am trying to convert back to a .DOC file.  When I try to convert it I get a warning dialog which says: 'An Unknown Error Occurred'.
    I searched these pages and found that a number of people reported this and managed to fix it by solving some sort of problem with fonts, but I could not understand what people said they did to fix it.  So I made a duplicate of my document,  removed the last 30 pages, tried to export, got the error.  Removed the last 15 pages, etc. until I found the page which was causing the problem.
    Doing this I found two problem pages.  The first one had a style called 'Body Bullets' which was using Helvetica 10 point.  I changed it to Arial 10 point, but it did not solve the problem.  So I deleted the style and used a built-in style called 'Bullet' which I redefined to use Arial 11 point.  That worked.
    The next problem page had a small section in Arial 10-point.  I changed it to use 'Body' style (which I had defined earlier to use Arial 11-point) and now the whole document can be successfully converted to .DOC without errors.
    My question is can this be fixed or do I have to avoid using Helvetica/Arial 10-point fonts in my document?
    Thanks.
    Martin Barker.

    Hi
    Here I have no problem with these fonts :
    For Doing this I found two problem pages I used Helvetica 10.
    For The next problem page had I used Arial 10.
    I was able to export without any kind of problem.
    It would be a good idea to scan your fonts with FontBook.
    Some may be corrupted or some may be conflicting.
    Yvan KOENIG (VALLAURIS, France) mercredi 18 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Murray is right. Padding (and margins) is added to the width. However, when using percentages, you should never use figures that add up to exactly 100%.
    Browsers need to convert the percentages to pixels. Because pixels must be whole numbers, some percentages are rounded up, which results in the final element dropping down below its neighbours. With percentages, it's much safer to use values that add up to 98% (99% often works, but 98% is safer).

  • Send pages document as pdf attachment without including the whole document in the message

    What I am trying to do is to write a document in pages then send it as a pdf attachment which shows as a mail icon in the mail message.  One then clicks on the icon and the attached file opens.  Seems I can do it if I send it as a word doc but every time I try and send it as a PDF the whole document shows up in the email body....
    Is there something I am not doing?
    Thanks
    Bryan

    Hi Gee,
    We also tried this:
    Wrote document in Pages and used "export" to save it as a PDF document.
    Fired up Mail, clicked on add attachment and as usual we got the document in the body
    Highlighted the document and right clicked.
    In drop down menu we selected "show as Icon" and it did just that
    We then sent it to our Tablet where, believe it or not it came up as an attachment NOT in the body of the mail.
    Just shaking our heads on this on but I do really think Jerry is absolutely right so will not take any more chances and add a second page if I have to send a pdf......
    Bryan

  • I have OSX Maverick on an iMac using Outlook e-mail.  PDF attachments are included in the e-mail  as the whole document rather than just the PDF icon.  How can i have just the PDF icon as an attachment?

    In Outlook my PDF attachments appear as whole documents and not just the PDF icon.  How can I have attachments included as PDF icons and not the documents?

    For your own viewing, you can of course control-click on the attachment and select "View as Icon".
    For others' viewing, it depends upon their email reader.  To ensure that attachments are not displayed expicitly you can put them all in a zip file (via control click and "Compress") then attaching them, or you can use third party stuff like Attachment Tamer.
    charlie

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How can I get my exported pages document to appear the same in pdf?

    When I export my document to pdf, the font color for those that I have reversed (white color) appear black and don't show up because the background is black. I've tried exporting my file 10 times and it appears to be different on many occassions. I can't get the entire document to appear correctly. Help!

    Would you mind sending me the Pages document for me to try myself. I don't have MacOs 10.7.5 but I have 10.6.8, 10.8.x and 10.9.1. I can try Pages 08 on all of them. Click on my blue alias and youl'll find the address.

  • Why pages sometimes tells me : "an unknown error occurred" when trying to export a document into .docx or .pdf ?

    Hello !
    Since I've done the 5.0 update for Pages (and also with 5.1 and 5.2), I sometimes don't manage to export my documents into .docx or .pdf files. I get a message telling: "an unknown error occured", and the file isn't converted. Could someone help me ?

    Other than using the version that works, as VikingOS suggests, look for any distinguishing features or objects that may be common amongst the files that won't convert. Particularly Tables which seem to experience the most problems.
    We have had a number of reports of this by other users and not been able to finger exactly what is the cause.
    Pages 5.2 has quite a few problems with exporting and this is just another.
    Peter

  • How do I copy a few lines from a pdf document to a Word document?  I'm not looking to convert the whole document, just need to copy a few lines here and there.

    How do I copy a few lines from a pdf document to a Word document?
    I'm not looking to convert the whole document, just need to copy a few lines here and there.
    ps.  Wow, what a user UNFRIENDLY site this is!

    In most cases you can just select the text and copy/paste. You can do that unless the file is a picture/scan.

  • How to edit linked text in an Indesign long document without it effecting the whole document

    I want to work out how to edit text in indesign without the rest scrolling
    I have a large 200 page book.  The text was supplied in Word and I have placed the whole document automatically and now I am going through each page doing my magic with pics, stylesheets etc.
    When the client comes back with edits, I am concerned that deleted or adding in text will scroll the text to the next chapter, etc etc.  This will be a nightmare.  Not sure how to unlink say 5 pages or so that are in each chapter so I can edit easily without the whole document being effected.
    Apologies I am probably not explaining myself all that well.

    lisalip wrote:
    john the link is broken
    I can see there are scripts but I don't want each page separate rather each chapter (each chapter can go for 2 or 7 pages)
    I am only 35 pages or so into the book and if I have to I can re place the text with some work, ie start again with the text pages.
    seems sily though that I cannot split the threaded stories a few pages at a time.
    The link is now fixed.
    You can split the threaded story into separate stories anywhere in the thread. At the chapter breaks seems logical. There are many users who'll assert all sorts of right/wrong at you when it comes to threading text. For my purposes, I set up long documents much the way you propose; threading articles, stories, or chapters discreetly; rarely would I ever thread an entire long document as one. It's a preference, not a rule. Each way has benefits and pitfalls.

  • How do you add the language of the dictionary in pages for the whole document?

    How do you add the language of the dictionary in pages for the whole document. When I add the british language it does not stay ON for the whole document. It goes back to "none"???? I am using pages 09 version 4.1 (923).

    This is a feature of Numbers.   If you repost on the iWork forum you may get more information.

  • How do I change font in the whole document at the same time?

    How do I change font in the whole document at the same time?

    Menu > View > Show Styles Drawer
    Menu > Help > Pages User Guide
    Download and read page 27 on creating and using Styles, which is done largely by example ie you make the text what you want then save it as a Style to be applied wherever you want in the document from the Styles Drawer.
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=180&mforum=iworktips ntrick
    Peter

  • Indesign CS2 Crashes when I try to export a document as pdf

    I'm using Indesign CS2 on a G5 using OS X version 10.4.11. As i try to export my document indesign completely crashes after I click the 'export' button in the pdf options window. I've tried saving using different pdf options and different document types but it still happens?

    Does your document contain any EPS files..? If so try re-saving them. InDesign can work with native photoshop & illustrator files.
    Failing that check your fonts as there may be a corrupt one lurking about...

  • How can I export a document to Kindle from my iPad?

    I can export a document to my Kindle account from my MacBook Air, but have not been able to discover how to do so on my iPad. I have presentations saved in dropbox that I need to move to Kindle to use but have to do it from my MacBook. Any help, or is it just not an available option on the iPad?

    I'd like to be able to do that too, so just tried it. I sentmyself an email with a small TXT attachment from my iPad. Then used Settings > Experimental > Web Browser I tried to open my gmail account from my Kindle Keyboard. I got past the first stages, albeit painfully slowly, but couldn't navigate away from the address box to my inbox. There was a message saying that I was using a version of Safari that was not supported by Google.
    Pity...
    Terry, East Grinstead, UK

Maybe you are looking for

  • Goods Issues but not invoiced

    Hello forum, a question on any Sales/Billing reports people know of for goods that have been goods issued but are awaiting invoicing.  We use POD processing and can get some reports but none with a financial value at an item level.  We also use tcode

  • Exporting Data for a single set of books from Oracle Financials

    I have a multiorg set-up with multiple set of books in an Oracle instance. I want to be able to export data for a single set of books into a new Oracle instance. Any insight into how this can be done (without going through each of the tables and refe

  • Stacked Bar showing VALUE literal instead of X axis value in hover hint

    I am converting to APEX 3.0 and noticed that the new "Show Hint" doesnt display the X axis value on a Stacked bar. Instead it shows the literal "VALUE". For example, I am displaying the number of orders for a given day. X=date, Y = count. I was expec

  • No of Apps users log-in.

    Hi Is there any 1 who can help me in this regard. How do i check that how many APPS users r currently login? Iam using RDBMS : 9.2.0.3.0 Oracle Applications : 11.5.9 Thnx....

  • "run as" administrator limitations

    Hi...  For years I have been an administrator on my PC runnings Windows XP Pro and now on a new machine running Windows 7 Enterprise.  I build code in LabVIEW and have worked for years (on the XP Pro machine) in versions ranging from 6.1 through 7.1