Create hyperlinks with script, without increase of large size and treatment of the BP reqs resulting?
Quick Summary: I have a script as part of a process involving a lengthy document of data merge base that creates hyperlinks by using doc.hyperlinkURLDestinations.add (). The script is simply extracted from text into clickable hyperlinks.
The problem is, the final PDF files that emerge from this process are 300% the size of a PDF file without the running script and are very slow to deal with. Most of that extra weight from an increase of 740 000% crazy (!) in the amount of data used for "info-Structure" (and that's after you run the version with hyperlinks through the Acrobat PDF Optimizer).
The amount of the data structure in the PDF files with hyperlinks ends up being more than twice the size of the entire file PDF files without hyperlinks added. There is also a substantial increase in the size of the "the cross reference Table.
This sharp increase in weight becomes a quick and simple process which takes a few minutes in a slow winding which takes hours, to the creation of files with a very slow pace inflated in a process that is prone to crashing and not.
I hope for another way to create hyperlinks that adds all this weight.
--------------------------------
Details: Here is my current process. It works fine except step 2 causes the final size of the PDF file and the time required for the execution of other processes to increase massively. I know there are different ways to implement hyperlinks in a PDF document - I hope that there is a different approach, that I can use to step 2 which avoids this massive expansion.
The goal is to create 600 2 PDF pages from an indesign template using the fusion of data, with each PDF with a file name that reflects reviews and live hyperlinks which vary from one record to the next. Here is my current process (for analysis comparative, the machine is a Mac Pro, Lion, CS6, with RAM 6gbs, and all files are on a disk HARD space, no transfer of data on all networks):
- Implement an INDD 2 pages with placeholders for merging data and spreadsheet.
- Create merged INDD, import hypertext links and other content as text, then doc.hyperlinkURLDestinations.add () that makes hyperlinks using live
- Export a PDF to 1 200 PDF page - file > export if step 2 was made, or the merger of data tool if it wasn't.
- Without step 2: the PDF file is about 110mbs and takes a few minutes to create.
- Step 2: the PDF file is about 170mbs and takes over an hour and a half to create - I do not know exactly how long I ended up leaving running from one day to the next, but he had already run 1: 20 p.m. when I left and doesn't look close to finishing.
- Without step 2: the process takes about quarter of an hour, slightly faster than a secondcreation of PDF files, and PDF files are 700kbs.
- Step 2: the process crashes after about 10 PDF files and takes minutes to produce each one. Even if it did not freeze, it should be about 25 hours to do all of them.
- In step 2 and then reducing the PDF to 45mbs through optimizer PDF Acrobat and 'save in reduced format' to cut, backward, compatibility, the process takes about 4 hours, producing a PDF every 20-30 seconds, and PDF files are around 3 MB each. Through to watch the process, almost all of the extra time taken comes from step "backup PDF... "for each of them.
to chop the PDF into segments of 2 pages with names based on worksheet data.
Each PDF 2 pages has 14 or 15 of the hyperlinks. I do not understand how the 14 and 15 of the hyperlinks can translate into an additional 2mbs of "" and something like the processing time of more than 3500% to create each PDF file.
Can someone suggest modifications to the script in step three, which could avoid all this overhead? Here's the complete script for convenience:
app.findGrepPreferences = app.changeGrepPreferences = null;
var doc = app.activeDocument;
app.findGrepPreferences.findWhat = '(http://.*$|https://.*$)';
var objs = doc.findGrep();
for (var i = 0; i < objs.length; i++) {
var currTarget = objs[i];
var lnkDest = doc.hyperlinkURLDestinations.add(currTarget.texts[0].contents);
var lnkSrc = doc.hyperlinkTextSources.add(currTarget);
var lnk = doc.hyperlinks.add(lnkSrc, lnkDest);
}
alert('Processed '+objs.length+' hyperlinks');
Edit - Here is a side-by-side comparison of the "Use of space Audit" tool optimizer based on CSSTidy Acrobat PDF, showing where the hyperlinks add volume. I scored two sharp increases in red...
.. .so there is a massive increase going crazy in the size of the info "Structure", a tiny mbs 0.000238 to 1.76 MB - two and a half times the size of the original file, just on 'info Structure. It's a 740 000% increase...
There is also a strong increase in fat in the cross reference table, 0,0046 mbs to 0.427 mbs - table of cross-references in the PDF with hyperlinks is more than half the size of the original file.
The only differences between two files PDF's, we have 14 clickable hyperlinks attached to existing excerpts of the text (the "hyperlinks" are from a PDF file that comes with living aggressive optimization PDF and images are so much smaller).
So it turns out the source of the problem was the document tags.
Make sure that the PDF file is not created as a PDF by InDesign Tagged, and it behaves. I don't know what is it about hyperlinks and marking that makes it swell massively, but it does.
Tags: InDesign
Similar Questions
-
cannot send error 0x800CCC0B group
I can't send an e-mail as a group, with or without an attachment, I always get error 0x800CCC0B the message, I have outlook express (not sure which version) under XP, I used to be able to send a group with 500 more emails in it, I tried to narrow the group to 200, but it makes no difference can anyone help?Check out this link. Apparently there is a max of 100 recipients simultaneously and they also will disable your account temporarily if you try many times. -
I am trying to create layers with a JPEG originally published in LR6. I converted the JPEG in a TIF format for my PES 11. PSE does not recognize the file for purposes of superposition; None of the routes command works. Just to see if PES was grateful the file at all, I tried to turn the file. Fortunately, he rotates the photo and turned it back. Why the program allow me to create layers?
You click on Expert in pse before trying to add layers?
Or it is possible that the image is 16-bit/channel.
In photoshop elements go to Image > Mode and click on 8-bit/channel and see if that makes a difference.
-
need to resize the image to a larger size and without distorting
need to resize the image to a larger size and without distorting
Every time you a high-end image you sacrifice quality and introduce artifacts.
-
I didt create a disk recovery for windows 7 Home premium and I lost the original and the recovery partition, but I have still the product key and the same laptop that was originally installed with windows 7 copy and now im turning my laptop with a fake copy, how to restore the original copy of windows 7?
Hello
You have certainly reduced your options
The only legal Windows 7 download available is now Microsoft, as Microsoft has stopped DigitalRiver Windows 7 ISO downloads.
http://www.Microsoft.com/en-us/software-recovery
But Microsoft only provides these downloads for Windows 7 keys to selling product at retail, not preinstalled OEM product keys (Dell, HP, etc.).
As you have licensed preinstalled OEM (Dell, HP, etc.), contact the manufacturer of your computer to order recovery media that they need to provide for a fee, if they still have them available.
Or you can also borrow the same exact retail edition DVD of Windows 7 and use your product key to reinstall.
See you soon.
-
When I used to press the fill and sign that I'd get a drop down add initials, place check, create a signature now when I click on fill and sign all the I can do is to fill in information and create a signature digital-how can I pick up my old options? Thank you
It seems that you have empty fields of Digital Signature in the form. Acrobat Reader DC complete and sign will add a signature of annotation with a PDF file that has Acrobat form fields or fields of Digital Signature in it. Test it by opening a PDF file that has no form fields or fields of Digital Signature in it and who is not protected by security permissions.
-
Is there a simple solution to create a gallery that welcomes them disturbing pictures portrait and landscape in the Muse Gallery Widgets?
Found a discussion that might help http://answers.squarespace.com/questions/28951/how-can-i-get-the-gallery-to-display-square - portrait - and - landscape-images
You can also use jQuery Plugins for this purpose.
See also the images of landscape and portrait in the lightbox
-
I'm new to Flex and I want to create a form that has a number of XML entries. When the application is launched, it would create a label for each input XML and fill out the label with the name of the XML input.
I work where I call on each regardless of the label with only a test of 4 input XML, but I would do it without manually place each label with a greater number.
In pseudocode, I would do that in html by:
for every XML element
Create the new label (or text box)
assign the lable with the content of the XML element
the order of the day XML
Is there an equivalent to that in Flex2?I think I found my answer. MX:Repeater is what I needed. Thanks anyway.
-
Creating app with folios protected by password to restrict who can read the content
I have a client who wants to put sensitive content on iPads for a specific Department. It is important that competitors are unable to see this content, so it can be available for free on the app store.
Is it possible to distribute a file of Folio as a standalone application without it being easily accessible to the public (and competing) via the app store?
If not, is it possible to create an app for the App Store and password - protect the file folio therein, either by requesting a password when loading, either by including a block of password on the first page in the design of InDesign?
Thanks for your help...
What you want to achieve can be done using a distribution restricted through DPS. You must have the DPS Enterprise Edition to do. http://www.adobe.com/devnet/digitalpublishingsuite/Articles/Restricted-distribution-with-d digital-edition - suite.edu.html
-
How to configure IKE with RSA without this Protocol between 1760 and PIX501?
Hello
I have a question about authentication with RSA - SIG IKE between 1760 router and PIX501 without AC.
.
I found a URL between routers, but not for PIX. do I need third-party CA (public or internal) in the PIX?
http://www.Cisco.com/warp/public/707/18.html
.
Please correct me if I am wrong or the return URL.
.
Thank you
RSA - enc is available for IOS routers, PIX will support certificate or key pré-partagées, you might want to look at this example with a MS CA:
http://www.Cisco.com/warp/public/707/lan_to_lan_ipsec_pix_rtr_cert.html
-
When the attempt to load Slacker today 12/13 (day of the update) get the infamous "Shockwave Flash may be busy, or it may have stopped responding. You can stop the plugin now, or you can continue to see if the plugin is complete. "error. So, I check the plugins, and of course, I have 2 versions of Flash, and one is new. I have try to disable one, and it seems to work, but not music. Then, I check to see if there is an update to the browser. Yes. Okay okay, we'll update the whole browser. Missing issue? Nope. Hmm. We will try to set the old version to 'request' and leave the new version still run. Refresh the Slacker, and he just ask and ask and ask, even when I set to "Save". Well, it does not. So let's turn it around - what is it? They are both set to 'ask '. Huh. Ok... Let's see if we can get rid of the old version of 23. I go to C:\Windows\SysWOW64\Macromed\Flash and search for the 23 .dll file, and this is the only file there for her. Rename it to .old, back back, restart FF, reload Slacker, 23 has disappeared, no still no streaming. No popup, no lock, no music either. Looks like Slacker like not the 24 version does not work on it, but the update released most of the 23. As long as the 23 .dll file is in place, there is a conflict that causes a deadlock, so I can not just put 23 and run at the same time.
- Update * it turns out that this issue has repercussions quite a few sites that I frequent, making it virtually unusable FF for me.
Suggestions?
So apparently just rename the .dll for the 23 file and restarting FF was not enough. I had to rename and restart my system completely. As I said in my original post, the update to 24 deleted all other traces of 23, leaving only behind the .dll file. I'm not for unnecessary restarts when I have a stable system, and it is not uncommon for my system to go months without a reboot. That's why I really hate auto-updates to date, but these days some things up-to-date so ridiculously fast that I'm tired of things break because plugins have been disabled because they were obsolete.
Thanks for the reply and links to the uninstall program. That will probably save me some hair pulling in the future.
-
I couldn't find and import from the version of Firefox on my Dell laptop to an iMac from Apple records containing the addresses of favorite Web sites. In the process, I created a hodgepodge of unwanted bookmarks. Please give me a step by step process to import the files into the version of Firefox on the iMac. The process to achieve this seems very awkward and counter-intuitive. Goes the same for the creation of new files and Web site addresses in these files on the version of Firefox installed on iMac of bookmarking.
The easiest way is to use the Sync feature to synchronize the bookmarks on the two installations of Firefox. To use sync, please refer to How can I set up Sync on my computer?
-
Hello
I see with third party app I can read and write to external disk NTFS on the mac computer.
then othrwise, then I can read and write on extern hardrive HFS + with application of third party windows computer. So who are the best third-party applications to read and write HFS and if they are free of charge on the external drive?
Thank you
Johan
Now that I understand your goal, check out http://www.ufsexplorer.com/rdr_hfsp.php but your YMMV.
-
Create Sprite with Script?
Is there a way to create sprites programmatically using JavaScript (or Lingo)? I know that you can replace the cast member a sprite on the fly, but I would like to create the actual sprite in the code. Any thoughts?Yes. You can use the commands puppetSprite() or makeScriptedSprite()
-
The Inbox for the e-mail in question account shows not all messages. I try to compact the file, and the computer crashes. When I try to use Comodo Backup to backup my hard drive of my computer hangs at the time that what happens to the Inbox. Even simply Thunderbird opening can cause the failed computer.
It is very far from the 4 GB limit imposed by XP
Ok. With Thunderbird closed. move this file to your desktop and delete inbox.msf.
Restart Thunderbird. Should we start is the obvious question?
Note that is is possible move or copy the file will also cause malfunction. If this is the case, your hard disk file allocation errors in Accessories > tools system on your Start menu, it is a check disk for errors option if I remember correctly
Maybe you are looking for
-
Burning a CD of songs to convert, but not actually burn to CD.
I've tried about 7 different times burn a CD and whenever it says to check the CD for damage or change of manufactures of the blank CD I've done both and none of them does not seem to work. I also tried to change the speed of writing to see if it wor
-
w540 does not detect DVD drive
W540 does not detect the CD / DVD drive and because it takes a long time to start. I know that I can put the hard drive to boot first, but now I want to install windows 7 and it does not start.I have already installed the latest version of the BIOS b
-
HP Pavillion G6 - no boot device - can anyone help?
Hello Can anyone help? Computer, kept the gel that I did and F11 factory restore, but now when I turn on my laptop I have a black and a gray screen saying: File: \Windows\system32\config\system Situation: 0xc0000225 And whey I try to enter the F11 re
-
PowerEdge 2950 [MS]
Buongiorno, avrei di preventivo need by: n. 01HARD DRIVE, 300G, SERIAL ATTACHED SCSI, 3, 10K, 3.5 " Server provider of it disco deve essere sostituito nella: Server: DELL PowerEdge 2950 Service etiquette: JH7FH2J Grazie Giovanni
-
where can I get drivers updated for Pavilion dv6000 laptop?
Pavilion dv6000 notebook PC 3 or 4 years. Windows XP 5.1 with Explorer 7. HP site said they have no drivers for my laptop product # RG38OUA