Article View: adobe.scripting.indesign
Article #15366Creating wrong PDF - VB 6.0
From: Marcia_Silva
Date: Sun, 30 Nov 2003 18:21
Date: Sun, 30 Nov 2003 18:21
64 lines
3540 bytes
3540 bytes
I do a find and replace on the template first, when debugging the component I get the correct document; than the document is saved to �indd�(the find and replace is correct), but when export to �pdf� the wrong document is exported.
In the last pass week we had some problem with some of files, we could not open the templates (wrong link, etc), the problem was fixed now the same template is been exported to �pdf�.
For example: if you have doc1, doc2, doc3, doc4, matter what doc1 is the one the been export to �pdf�.
We did not have this problem before, I have restarted the computer several time.
Also we have two instance of Indesign running, would that be a problem. Why is Indesign exporting the same template even when I don�t pick it?
Thanks
Set myInDesign = CreateObject("InDesign.Application.2.0")
myInDesign.Open (myCurrentDocument)
Set myDocument = myInDesign.ActiveDocument
'get name for new document
myInDesignName = myInDesign.Name
''PDF EXPORT
Set myPDFExportStyle = myInDesign.PDFExportStyles.Add
'myInDesign.PDFExportStyles.Item ("PDF for Screen")
myPDFExportStyle.AcrobatCompatibility = idAcrobat40
myPDFExportStyle.BleedBottom = "3p"
myPDFExportStyle.BleedInside = "3p"
myPDFExportStyle.BleedMarks = False
myPDFExportStyle.BleedOutside = "3p"
myPDFExportStyle.BleedTop = "3"
myPDFExportStyle.ColorBars = True
myPDFExportStyle.ColorBitmapCompression = idZip
myPDFExportStyle.ColorBitmapQuality = id8Bit
myPDFExportStyle.ColorBitmapSampling = idNoSamplingChange
myPDFExportStyle.CompressTextLineArt = True
myPDFExportStyle.CropImagesToFrames = True
myPDFExportStyle.CropMarks = True
myPDFExportStyle.ExportGuidesAndGrids = False
myPDFExportStyle.ExportNonprintingObjects = False
myPDFExportStyle.ExportReaderSpreads = False
myPDFExportStyle.GenerateThumbnails = False
myPDFExportStyle.GrayscaleBitmapCompression = idZip
myPDFExportStyle.GrayscaleBitmapQuality = id8Bit
myPDFExportStyle.GrayscaleBitmapSampling = idNoSamplingChange
myPDFExportStyle.IgnoreSpreadOverrides = True
myPDFExportStyle.IncludeBookmarks = False
myPDFExportStyle.IncludeHyperLinks = False
myPDFExportStyle.IncludeStructure = False
myPDFExportStyle.MonochromeBitmapCompression = idZip
myPDFExportStyle.MonochromeBitmapSampling = idNoSamplingChange
myPDFExportStyle.OmitBitmaps = False
myPDFExportStyle.OmitEPS = False
myPDFExportStyle.OmitPDF = False
myPDFExportStyle.OptimizePDF = True
myPDFExportStyle.PageInformationMarks = True
myPDFExportStyle.PageMarksOffset = "3pt"
myPDFExportStyle.PDFColorSpace = idCMYKcolor
myPDFExportStyle.PrinterMarkWeight = id25pt
myPDFExportStyle.RegistrationMarks = True
myPDFExportStyle.SimulateOverprint = False
myPDFExportStyle.SubsetFontsBelow = 0
myPDFExportStyle.ViewPDF = False
'export document
myInDesign.Documents.Item(1).Export idExportPDF, pdfDocument, False
Technical Details
Message-ID:
<2ccea904.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,f8c9165910f75a0,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-30 10:37:36 PST From: Marcia_Silva@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Creating wrong PDF - VB 6.0 Message-ID: <2ccea904.-1@webx.la2eafNXanI> Date: Sun, 30 Nov 2003 10:21:03 -0800 Lines: 72 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit