Export an InDesign file in an HTML file

Hello

I'm developing an Indesign Plugin to export an Indesign document to a HTML file automatically using C++ code. I don't want to open the export (file chooser) dialog box or the properies dialog when exporting to HTML format. The plugin should have the feature automatically export a file to the HTML file in which the file name is a fixed.

I went if the SDK and came up with this code.

PMString HTMLFormat ("HTML");

HTMLFormat.SetTranslatable (kFalse);

IDocument * doc = Utils < ILayoutUIUtils > ()-> GetFrontDocument();

InterfacePtr < IK2ServiceRegistry > k2ServiceRegistry (GetExecutionContextSession (), UseDefaultIID());

Search all providers of services with kExportProviderService.

Int32 exportProviderCount = k2ServiceRegistry-> GetServiceProviderCount (kExportProviderService);

bool found = kFalse;

InterfacePtr < ISelectionManager > selection (() Utils < ISelectionUtils >-> QueryActiveSelection());

for (int32 exportProviderIndex = 0; exportProviderIndex < exportProviderCount; exportProviderIndex ++)

{

K2ServiceProvider InterfacePtr < IK2ServiceProvider > (k2ServiceRegistry-> QueryNthServiceProvider (kExportProviderService, exportProviderIndex));

InterfacePtr < IExportProvider > exportProvider (k2ServiceProvider, IID_IEXPORTPROVIDER);

exportProvider-> ExportToFile (file, doc, selection, "HTML", kFullUI);

}

What is the right way to get the functionality?

If yes I want to know how to pass the name of the file as a string to the ExportToFile() method.

can someone pls help me to solve the problem?

Hello

You can replace kFullUI by kSuppressUI.

Markus

Tags: InDesign

Similar Questions

  • It is possible in "CC Indesign" to export the indesign file to .mobi format?

    HY!

    I have a question for InDesign CC, the new version... I needed to export the indesign file to the domain .mobi for Kindle support? I can do it with this version? Or it is possible with InDesign CS6?

    Thank you

    Sonia Vairo

    The plug has not been updated since InDesign CS6.

    You can easily convert your file produced ePub from InDesign CC2014/CC2015 with the Kindle Previewer:

    http://www.Amazon.com/GP/feature.html?docid=1000765261

  • I have problem in the PDF export to save only the layers appeared only. When I export the indesign file to PDF that contains layers hidden pdf placed, pop up problem when I use the search field in exported pdf file. hidden text of hits from search results

    I have problem in the PDF export to save only the layers appeared only. When I export the indesign file to PDF that contains layers hidden pdf placed, pop up problem when I use the search field in exported pdf file. hidden text of hits from search results to laye

    I answered your question: there is nothing you can do in InDesign. You need to ask in the Acrobat forum I linked.

  • How to export the indesign file to coreldraw

    Hi all

    I had created a brochure that would be printed to a professional printer. There, they use Indesign. Instead, they use Corel Draw.

    How to export the indesign file created in corel draw.

    and printing

    @Dov, sorry. But there are places on Earth where the upgrade to a more modern workflow just will not happen either by choice, or more often, because of the money. I've dealt with a few printers to India use CD (beautiful dig to Corel, btw) or Illy. Just like that.

    @srikanth977, all printers I treated using an older workflow and equipment that use CD or Illy for output agreed a PDF file. In addition, each of them wanted to PDFX-1A a PDF file without crop marks, bars of color, etc.. So check with your printer. They then add these features when they print.

    Best regards, Mike

  • Export the InDesign file as text

    Hi all

    I need to export the InDesign file as text (textType). There are several examples of this, but I could not found the script that export InDesign file as text in the path of the active Indesign with the indesign file name document.

    For example: If the file is MyDoc.indd, export text file name should be mondoc.txt.

    If anyone has this code, please give me.

    Thank you

    Chang

    Talk in circles, are we not? See anwser #1 above!

    But suit yourself. That's what you ask:

    app.activeDocument.stories[0].exportFile(ExportFormat.TEXT_TYPE, new File(app.activeDocument.fullName.fullName.replace(/\.indd$/i,'')+".txt"));
    
  • image quality emf export indesign file to PDF

    In my business, I prepare pdf reports. PDF files include graphics generated in excel.


    the process I use is:

    make charts in excel-> export graphics to the emf format in the specific folder (as emf is done with macro vba to export)-> link EMF to indesign-> export indesign as pdf (print)

    I am trying to implement a type of graph that includes transparency (in the specific case, a histogram with transparent colors, highlight a specific area of the graph).

    EMF are exported "correctly", as can be seen in the fixed samples

    the problem arises in indesign, when I export the indesign file to PDF (see final results):

    -J' I used to use compatibility Acrobat 4 (PDF 1.3), which - for what I understand - does not recognize transparency and causes the diagrams to export with transparency to 100%

    -If I use greater compatibility (Acrobat 5 or higher), transparency is exported correctly but all the tables and "fuzzy" exported graphics (or maybe a little too intense). The effect is not considered at higher zooms - but it is important to me as graphics look OK at all zooms because report is sent to customers with initial view as full page.

    using another format that emf is not a viable option. What can be a solution in this situation? I would like to understand what is the type of adjustment of export should I use to get a clean exit.

    in case the problem is known, I would like if you can please redirect me to correct the discussion.

    Thank you.

    You can post screenshots or link to files in a dropbox folder. That said, you are using an inherently low high-end, imprecise graphical format and is awaiting the results of high-end. There are tradeoffs here.

    The best advice I can give you without you actually hire me to go through your workflow, is to stick with solid colors and make sure your transparency blend space in InDesign are defined in RGB if these documents will be viewed on screen only.

  • image in indesign file not no projection in pdf export - help!

    Hi there-

    Export my indesign file to PDF has been fine up til now - all images and text are fine except one. The image is one that I have edited in Photoshop (CS4) - it's a layer of drop shadow. I then placed in Indesign and fiddled with his opacity. And then I exported. Literally, everything else in this relatively large file is fine. I increased the opacity of the image at 100% and he did in fact appear in the pdf file, as it appeared on indesign. Then I tried to decrease the opacity of a minimum amount (85% - I is approximately 45%) and it disappeared again. Don't know how to solve this problem. Thanks for any help

    (in Indesign)    with shadow.png (in pdf)shadowless.png

    Preview is a non-compliant standards to view PDF files. I can't stand all the PDF features. You must use the free Adobe Reader software. You can download it from the Adobe Web site.

  • Quality PDF export from InDesign and Photoshop problems

    Hello.

    I have problems exporting my InDesign files to PDF and keeping the Res. And it's not only images (I understand on the CIO) is the guy over there too.

    I exported as preset high quality printing - this is false. Are there other settings to make sure the PDF export retains the quality of high resolution and clarity?

    At the time of high resolution when I export jpeg or eps but not PDF.

    I also noticed the same problem when I export to PDF from Photoshop.

    I really need to create interactive and high quality print PDF of my InDesign files.

    Please can you advise.

    Thank you

    Karen

    Sounds like it might be that the setting resolution in Acrobat is not corresponding to the screen.

  • FXD export from InDesign CS5, js

    Hello

    I need to export the InDesign file as fxg. I guess it will be something similar to the pdf export, but definitely miss me something. Here's what I have:

    myDoc = app.activeDocument;
    myDocPath = myDoc.filePath;
    mySplit = myDoc.name.indexOf (".");
    myFXGName = myDoc.name.slice (0,mySplit);
    var myRootPath = myDocPath.parent.fsName;  
    myFXGFullName = myFXGName + ".fxg";
    
    
         //   var myFXGExportPreset = app.fxgExportPresets.item("ExportPDFCS5");
    
    
            
        myDoc.exportFile(
            ExportFormat.fxgType,
            File(myRootPath + "/" + myFXGFullName),
            false, 
            // myFXGExportPreset
        );
    

    Thank you for your help.

    Yulia

    To be absolutely clear, InDesign has no support for FXG (Flash XML Graphics).

  • 6 inDesign crashes when you export a PDF file

    I get the same report of crash for days, every time I try to export a PDF in InDesign CS6. I don't know what is happening with this particular file, but can I export other files without problem. I have deleted all links .indd and .ai and does not use the new fonts that won't export in other files. I tried to export single pages and the whole document, in different resolutions, and it crashes every time. I stuck my last report of accident here: INDESIGN 6 CRASH REPORT - Pastebin.com

    Export the file to IDML and open that.

    Note also that you must patch InDesign (help > updates) and CS6 is not taken in charge at 10.11.

  • Lo-res images appear in the exported PDF from Indesign files - anyone else having this problem?

    I used Indesign for years without this problem...

    But I noticed recently that many of these images (PSD, TIFF, or JPEG) that I placed in Indesign files are exported as pixelated, versions low resolution when I export for printing (PDF/X-1).

    I tried different settings, but in each case, the image (which appears thin and sharp as seen in Indesign) came out like a pixelated mess blurred.

    This seems to have started happening in the past months.

    Vector graphics are fine.

    Anyone else having this problem?

    Or someone at - it a solution?

    Also use some PDF parameters where resolution is not sous-echantillonnees at all.

    Turn off downsampling.

    And I would like to test, when you export to PDF/X-4 would make to the resolution of the images.

    Just to know, if something is fundamentally wrong with your PDF export feature perhaps.

    Uwe

  • Only black color on the linked indesign files conversion 4 black color process when exporting to PDF?

    I have a paged presentation that contains multiple indesign files linked. They have two colors: black to 100% and a spot color. If I export the files related, using the same PDF preset, the colors are kept, but when exporting from layout with them tied it converts black in 4 colors. I checked the separations on the layout file but they are all very good. It's just a bug or am I doing something stupid?

    What happens when you color manage CMYK to another space CMYK, try using PDF X / 1 setting first and make sure that preserve numbers is set for the release, let us know how it goes.

  • InDesign file I want to simply export to a jpg file and integrate the jpg (or png) in an e-mail...

    I have an indesign file I want to simply export to a jpg file and integrate the jpg (or png) in an email... no link, just... show all copy appears fuzzy, no matter what I do... what I am doing wrong?

    I agree with you Peter.

    However, when inserting to email, certainly in the office, the format returned from any other format, that is, png or another format of JPEG file.

    I do as Peter suggests, open the PDF file in photoshop - then save to the Web but choose JPEG compression max.

    It is usually the best solution.

  • Export from InDesign to PDF and the PDF file last updated is greater than one month and not easily print on letter paper is PDF presets?

    Hello

    I export from InDesign to PDF page is larger in the PDF file, and others I exported. This is because of the present PDF? One of the project managers is not able to print on 8.5 "x 11", but the InDesign document presets are the same as before. I wish I could download PDFs to show, but the newly exported PDF is greater than the version I created a month ago. I created a PDF file and the newly updated PDF file is almost un.5 inch wider with the export presets even. Any thoughts?

    Sadira00123456789 wrote:

    One of the project managers is not able to print on 8.5 "x 11", but the InDesign document presets are the same as before.

    I suspect the project manager has his copy of Reader/Acrobat simply set to print full size, rather than "Worthy" (assuming that the size of InDesign pages is truly 8.5 x 11).

    .. the newly updated PDF file is almost un.5 inch wider with the same export presets.

    This has nothing to do with export presets. How did determine you this difference of half inch?

  • How to record down version Cloud Creative InDesign CS5? Exported as a file .idml but still the messages that plug-ins are missing, although CS5 confirms it is fully updated.

    How to record down version Cloud Creative InDesign CS5? Exported as a file .idml but still the messages that plug-ins are missing, although CS5 confirms it is fully updated.

    Yes. Thank you. I based on another post misled. Successfully done this by selecting 'File', 'save a copy... ". "then choosing"for CS4 or later (IDML).

    He had little patience and several tests, but I think it was because of hardware (memory) overloaded version CC cloud or something. It was a 50 MB, file of 500 pages and took 17 minutes to convert/save,

    Recap: dnuee to CS5, do not use "Export" (IDML); use ' Save as ' or 'Save a copy' and select "for CS4 or later (IDML).

    Advice much appreciated.

Maybe you are looking for

  • Firefox 29.0.1 does not properly use items Javascript [javascript:printVersion ()]

    Various Web sites, that I use regularly is no longer works correctly in this latest version of Firefox. When I go to my bank site and click on a link to give me a printable version of my words, nothing happens. The javascript is javascript:printVersi

  • Help with Airport Express and Configuration capabilities

    I have a new Airport Express which is set to expand the network wireless (created by Time capsule).  Is it possible to also provide a wired connection to another device in this mode?  If so, how do I need to change the settings? The other device is a

  • Problem of WritableGraph. How to preload data into InputData?

    Hello I was planning to do a simple editor to change the limits by drawing a curve in the control WritableGraph. To be able to define the limit that I first load data into chart and a table [Point]. Source of data in this table (which trace the loade

  • problems with the h 2207

    I recently received this question that ruined my limited life tech. My monitor up to that I tried to plug in a splitter from mi hd on it worked fine. After plugging the screen splitter continues to go to sleep when I try to use the ps3 or the cable b

  • Download big blue screen

    also this computer will shut down in 10 minutes and it doesn't