Very slow processing and no internet since I connected to my pc
I connected to my pc using usb cable to view some pics and ever since then the phone processes very slowly and no internet connection. I tried shutting it down for a while to see if that would help but no luck. Can someone guide me?
Hi and Welcome to the Community!
Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
Best!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code
Similar Messages
-
Macbook getting very slow - processing, typing, using internet
Hi there apple community,
Can someone advice me on how to 'defrag' my Macbook. I'm not sure why but Entourage popped up a message saying I've run out of space in my HD and I have to delete files for it to run. I looked at my Mac HD and there is 26GB available!! Surely that is heaps of GB. A friend of mine who uses a PC suggested cleaning out my temporary files, cookies, and defrag. I have no idea how to do this on my MacBook.
Can anyone suggest why this would happen... I thought 26GB is enough. Is it the memory perhaps.. how do I address this?
I have the 13inch Macbook about a year and half old.
Have music files and movies etc on it.. but not that much to slow it down. I've deleted all unnecessary files, music and movies already.
Thanks in advance.
JoannaHey.. I really don't think I GOT an INSTALL DISC with my Macbook. Bought it in Feb 2008 or early 2008... I've looked everywhere and I don't have an install disc. I'm very fastidious with keeping receipts/documents etc.. and I would have kept the disc with all my computer equipment. Is it possible the Mac came without it. I might have to ask my brother for his cos he just got a new Macbook. Can I use his?
I did the repair permissions, laptop doesn't seem any faster or running better. In fact it did this weird thing I've noticed a few times now.. I usually leave the Mac on most of the day or put in sleep mode.. sometimes when it's left on.. the screen flashes on and off... but when I press a key.. it stops.. and doesn't happen again usually. I will restart when that happens. Doesn't happen often but I've noticed a bit more frequent last 6 mths.
I still haven't cleaned up the HD cos no Install disc.
I will google that program you suggested and try that.
cheers. -
HT5012 My iphone 5c was very slow processing,please help me?
My iphone 5c was very slow processing and my setting not working properly please help me
And my iphone 5c apps was crashing again and again..Try > http://support.apple.com/kb/TS1538
-
My MacBook Pro is running very slow when using the internet and sometimes gives the pinwheel of death, any suggestions on how to fix?
<http://www.thexlab.com/faqs/sbbod.html>
-
why are most of the apps (anything that has to search) on my iphone4 and ipad (1) running very slow (or not at all) since iOS5 update...esp google. Search seems to go quickly, but then when I try to open a link..nothing. I have turned off icloud.
I am having the same problem. Did turning off iCloud work? Did you just turn everything off or did you actually delete the account off your iPod?
-
Healing brush/Clone stamp tool and others very slow processing
Healing brush/Clone stamp tool and others very slow processing. System resources monitor shows only 700MB (of 5GB allocated to Photoshop) RAM and 30% CPU is used to perform such tasks as healing brush. Process bar comes up and is painfully slow to complete the task. I don’t understand why does Photoshop not use all the resources available/allocated? No other programs are running at the time, I have tried all the suggestions on this forum and all over the Google. My brand new system is: Intel I7 4770K overclocked to 4.3GHz, 8GB 1600 RAM, Samsung PRO 120GB SSD system drive, 100GB scratch disk. The photos I usually work on don’t exceed 20MB in size. Any suggestion would be appreciated. Thanks
Thanks for the answer.
I have not mentioned the GPU because the processes I described (as far as I know) are not supposed to be using GPU resources. So far I have not been able to afford the GPU i want which is GTX770, so I use Intel 4600 built in graphics instead. To be honest I find, that 4600 graphics is quite powerful. I am able to play Mass Effect 3 on Full spec on max res without game slowing down. And Windows 7 64bit index score is 7.8 for the 4600 graphics. Overall index score is 7.8 on my PC righ now.
I'll try to get the Photoshop system info as soon as possible.
Thanks again.
Zee -
Very slow processing on LSMW and IFS access
Hi all,
we have a very slow processing on LSMW and IFS access. I believe it was slow all the time in the past. This LSMW transaction only converts some data, which are stored in a flat file in the IFS and stores it again into a flat file in the IFS. It is reading the data from IFS and writing again the data into the IFS.
IFS is not fast, I know. But do you have an similar experiences with such LOAD ?!
R/3 Enterprise 4.70 shows with transaction SM50 the following lon running job:
4 BGD 65988 waiting Yes
5 BGD 65989 waiting Yes
6 DIA 85421 running Yes 1 SAPLTHFB 100 USER1
7 DIA 65993 running Yes 11500 /1CADMC/SA 100 USER2
8 DIA 65994 waiting Yes
9 DIA 65995 waiting Yes
The WRKACTJOB Display shows:
This means for me the job is not doing so much with the database. Only 439 I/O's in 21 minutes. This is nothing. I have tried to give to this job Priority 19, but this is not the reason, the job is not going faster.
Work with Active Jobs
02.07.08 1
CPU %: 89,0 Elapsed time: 00:21:25 Active jobs: 895
Subsystem/Job Type Pool Pty CPU Int Rsp AuxIO CPU %
WP06 BCI 2 20 395,2 136 0,0
WP07 BCI 2 19 10274,0 439 12,7
WP08 BCI 2 20 1156,0 8 0,0
WP09 BCI 2 20 874,3 6 0,0
The WRKSYSSTS Display shows: This means for me, the is no memory lack.
Sys Pool Reserved Max ----DB----- --Non-DB--- Act- Wait- Act-
Pool Size M Size M Act Fault Pages Fault Pages Wait Inel Inel
1 5000,00 1448,43 +++++ 0,0 0,0 0,4 0,5 94,9 0,0 0,0
2 60340,00 44,65 3500 51,6 6335 113,4 364,1 7887 0,0 0,0
3 128,00 0,00 10 0,0 1,3 0,2 0,8 17,2 0,0 0,0
The WRKDSKSTS Display shows no problem in DASD.
I/O Request Read Write Read Write %
Rqs Size (K) Rqs Rqs (K) (K) Busy
11,5 12,4 3,0 8,4 13,2 12,1 2
13,2 10,2 1,5 11,6 7,0 10,6 1
10,6 8,8 3,5 7,0 8,2 9,2 2
13,8 12,4 4,2 9,5 10,1 13,5 2
8,3 71,3 7,5 0,8 78,4 7,4 5
17,7 123,6 17,5 0,2 125,2 4,0 9
27,0 83,1 25,7 1,3 87,1 4,3 10
26,9 95,0 25,6 1,3 99,6 5,8 9
16,9 115,4 16,2 0,7 120,3 4,0 8
37,3 116,7 37,0 0,2 117,3 18,0 13
21,4 94,0 20,3 1,0 98,6 6,2 7
12,7 72,8 11,5 1,1 77,6 26,8 6
13,5 85,1 12,3 1,1 92,0 12,8 5
Any idea, here ???
best regrads,
Carsten Schulz
Teamleader SAP-Basis, ebmpapst Mulfingen, GemanyHi together,
thanks for answering so fast.
The jobs read from the sysbas-IFS /usr/sap/a/b/ and writes to /usr/sap/SID/DVEBMGS00/work/ also in the sysbas-IFS.This IFS is not remote. Not through the QfileSrv.400 mechanism.
And yes, we have a HA solution. We have two IASP's on two different iSeries and are using XSM to mirror the data.
I have tried to increase the speed by switching off the XSM mirroring, but the speed does not increase. Sorry.
best regards,
Carsten Schulz -
Very slow broadband and connection keeps dropping
Hello, we have been BT customers since August 2013, after previously being Freeola customers for many years. We live in a very rural area, at the end of the exchange so we are never going to get amazingly fast broadband, we are estimated 1MB.
Previously using Speedtest.net at the beginning of the year we were getting 0.9Mbps, then in May our internet dropped and we couldn't get a proper connection or speed. We contacted Freeola who after doing some tests, said that we had a copper line failure and to contact BT. We did this and the copper line failure issue was fixed, an openreach engineer tested the line and we assumed all was fine. But we were still getting very slow speeds and the connection kept dropping. So we decided to switch to BT in August, we have put up with the slow speeds and dropping connection for 3 months hoping in vain that once we got a stable line the speed would increase and we would be back to were we expected to be.
When we are using the internet, we very often get "Your connection has been reset" errors within our browsers.
This has not happened, so I have decided to come on to this forum in the hope that we can solve this issue before my hair gets any greyer. We have a BT Home Hub 4 so we have not got all the stats that previous HH had available.
Also as we are in a rural area our telephone connection is through overhead cables and as said previously we are at the end of the exchange.
Please see below for the information that I have been able to get:
Home hub stats:
17:28:52, 28 Oct. ( 68.040000) DSL noise margin: 12.00 dB upstream, 9.50 dB downstream
17:28:51, 28 Oct. ( 67.970000) DSL line rate: 448 Kbps upstream, 192 Kbps downstream
Internet Connection Configuration
Connection Information
Connection time:
4 days, 22:01:39
Data Transmitted/Received:
221.4 MB / 2.3 GB
Bt Wholesale Broadband test:
Download Speed: 0.02
Upload speed: 0.34
Ping latency: 0.00
Further diagnostics:
Master socket is
I performed the quiet line test which wasn't too bad there was a very slight crackle, but it was with a wireless phone.
Speedtest.net results:
Ping: 463ms
Download:0.13mbps
Upload: 0.28mbps
As said previously before the copper line failure we were regularly getting download speeds of 0.9mbps.
Any help would be greatly appreciated.
Solved!
Go to Solution.Hi jacoma,
Sorry to hear that your having issues with your BT Retail services.
You will either be on the ADSLMax (upto 8mbps) service or if your exchange has been BTw 21cn upgraded you maybe on the ADSL2/2+ (upto 12/20mbps) service depending on your line quality and length.
However these upto speeds may not be the speeds you will get as ADSL broadband connections are very dependent on the distance from your property to the exchange and the quality of your line. The further away you are from your local exchange the slower your broadband speed will be.
To enable the community to help you please see the advice below:
Please see Keith's help guide here: Helping forum members to help you, it will go through some checks that are needed for us to help you.
1) Are you in the TEST socket? if not can you please connect to the test socket and repeat steps 2, 3 and 4.
All the below performed in TEST Socket:
2) is there any noise on your line. dial 17070 option2 ,called quite line test, from landline phone. should be silent but slight hum normal on cordless phone.
If there is any noise on your line such as crackling, distictive noise when the phone is connected to the TEST socket and doing the quiet line test then you need to report a line fault to BT Retail by dailling 151. Once the crackling or disticive noise has gone then your broadband should slowly recover.
3) please post adsl line statistics
4) Can you please run a BT speed test (including IP Profile) http://speedtest.btwholesale.com (not beta version)[Best done with a wired, Ethernet, connection] After Quick Test is done you need to click "Further Diagnostics" to get IP Profile.
ADSL Line Statistic Help:
If you have a BT Home Hub like the one below...
Then:
1) Go to http://192.168.1.254 or http://bthomehub.home
2) click Settings
3) Click Advanced Settings
4) Click Broadband
5) Click Connection or sometimes called ADSL (see picture Below)
The direct Address is http://bthomehub.home/index.cgi?active_page=9116 (for bthomehub3.A firmware ending in 1.3)
or http://bthomehub.home/index.cgi?active_page=9118 (for bthomehub3.A firmware ending in 94.1.11)
You will need to copy and past all the adsl line statistics ( Including HEC, CRC and FEC errors). You may need to click " More Details"
If you have a HomeHub 4 then the majority of the ADSL Stats shown in the previous Hubs will not be there.
for HH4 users you can go to hub manager then select troubleshooting then logs and are look for 2 entries together which will show theconnection speed and noise margin for when your HH4 last sycned with the exchange.
There are more useful links on Keith's website here: If you have an ADSL connection, please select this link
cheers
I'm no expert, so please correct me if I'm wrong -
Internet is very slow but says i have a good connection ?
My internet is very slow but yet i have a good connection please help
Please answer as many of the following questions as you can. You may already have answered some of them. In that case, there's no need to repeat the answers.
Have you restarted your router and your broadband device (if they're separate) since you first noticed the problem? If the answer is no, do that now and see whether there's any change.
Are any other web browsers installed, and are they the same?
What about other Internet applications, such as iTunes and the App Store?
Are there any other devices on the same network that can browse the Web, and are they affected?
If you can test Safari on another network, is it the same there?
If you connect to your router with Wi-Fi and you can also connect with Ethernet, do that and turn off Wi-Fi. Any difference? -
Slow processing and getting opening errors/warnings
I've modified the PDF Binder sample to get a plugin that would open PDF's and Tif files, and save them as PDF/A-1b (code below).
It's working. The problem: it's processing too slow (compared with the Actions batch processing)... and I've been getting warnings/and errors about "The imput file is corrupt or of an unknown/unsupported type" type. This is stopping my batch process until I click OK, and the it continues.
I am trying to process a few thousand of tif files now. I tried first to use the Batch processing capability built in the Acrobat X... an it works, but only with the first 255 documents in the folder... then gives an "insufficient disk space" message for the rest of the files in the directory.
So, 2 questions: Does anyone knows why it is so slow processing the tiff files and... how I can make my code "silent" so it does not wait for the OK after the message??
Thanks in advance.
The code:
ADOBE SYSTEMS INCORPORATED
Copyright (C) 1998-2006 Adobe Systems Incorporated
All rights reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the Adobe license agreement
accompanying it. If you have received this file from a source other
than Adobe, then your use, modification, or distribution of it
requires the prior written permission of Adobe.
\file PDFBinder.cpp
- Implements a method to convert multiple files into PDFs and bind the PDFs
into one PDF file. The code shows how to use AVConversionToPDFHandler to
convert files to PDF and how to use PDDocInsertPages() to combind PDF files.
// Headers.
#include <stdio.h>
#include <ctype.h>
#ifndef MAC_PLATFORM
#include <direct.h>
#include "PIHeaders.h"
#endif
// Defines ----------
// Define this flag to show AVConversionToPDFEnumHandler info. in log file.
#define SHOW_TOPDF_HANDLER_TYPES
// define this flag to use file type filter
#define USE_FILE_FILTER
Constants/Declarations
// Message display control. Ture: display
ASBool bEcho = true;
// File location. User can change the following filenames.
#if WIN_PLATFORM
const char* STRING_PDFBinderFolder = "C:\\Fairfax\\Adobe\\in";
const char* STRING_PDFOutputFolder = "C:\\Fairfax\\Adobe\\PDFA";
const char* FOLDERSYMBOL="\\";
#endif
#if MAC_PLATFORM
const char* STRING_PDFBinderFolder = "/PDFBinder";
const char* FOLDERSYMBOL="/";
#endif
char* OutputPdfFileName = "PDFBinderOutput.pdf";
char* LogFileName = "PDFProcessLog.txt";
static ASInt32 gNumToPDFExt;
static ASInt32 gNumFromPDFExt;
static AVConversionFromPDFHandler RightHandler;
const int MAX_FILENAME_LENGTH = 256;
char sLogFileName[MAX_FILENAME_LENGTH];
// Filter -----------
// Filter is a list of file types which can be converted to PDF in this program.
// Use a filter may fit user's specific needs and ensure a smooth automation process.
// Of course, the user can turn off the filter in two ways:
// (1) gPDFBinderFileFilter = "";
// (2) comment out //USE_FILE_FILTER
// The filter should be consistent with the Acrobat viewer's menu capability:
// Create PDF from multiple files ...
// Here we put the types which have been tested, but user can expand it.
const char* gPDFBinderFileFilter = "pdf,tif,tiff,PDF,TIF,TIFF";
const int MAX_STRING_LENGTH = 2048;
AVConversionToPDFHandler gHandler;
// functions in this file.
int ConvertAndInsertFileToPDF(ASPathName aspItem, char* aFileName, PDDoc PDFfile);
void BindingFileToPDF(ASPathName aPathName, char* aFilename, ASFileSysItemPropsRec nFileAttrb, PDDoc targetPDdDoc, ASPathName outputPathName, int *ipTotal, int *ipConverted);
ASBool PassPDFBinderFileFilter(char* filename);
int ConvertAndSavePDFInTargetFolder(ASPathName aPathName, char* aFileName, PDDoc PDFfile, ASPathName outputPathName);
char* NewFileName(char *& aFileName);
// callbacks
ACCB1 ASBool ACCB2 MyAVConversionToPDFEnumProc(AVConversionToPDFHandler handler, AVConversionEnumProcData data);
ACCB1 ASBool ACCB2 AVConversionToPDFEnumFindHandler(AVConversionToPDFHandler handler, AVConversionEnumProcData data);
static ACCB1 ASBool ACCB2 myAVConversionFromPDFEnumProc(AVConversionFromPDFHandler handler, AVConversionEnumProcData data);
Implementation
/** This sample implements a method to convert multiple files into PDF
and bind the PDFs into one PDF file .
This sample shows developers how to grammatically implement To-PDF file
converson functionality. Basically, the code uses AVConversionToPDFHandler
to convert files to PDF and PDDocInsertPages()to combine PDF files.
This plug-in is designed to run from a menu item, and by setting bEcho = false
it may be run without any graphics user interface on the screen. Therefore, it
can be executed from other programs such as C IAC, VB IAC, and JavaScript
to meet enterprise workflow needs.
How to run it :
- This sample adds a menu item "PDF Binder" under the Acrobat SDK submenu. Two ways to
execute it: 1) click the menu item to run the program using a fixed file location
hard coded; 2) press the shift key and click the menu item to choose a folder where
files to be converted are located.
- Without folder selection, this original code is to convert and bind files in a
directory C\test\PDFBinder for Win, or a folder MacHD:test:PDFBinder for Mac.
You can copy the test files in the project's testfiles folder to the appropriate location
for testing. You may locate files to be converted in another directory/folder, and
specify the location in the string variable PDFBinderFolder in the code.
- When you have the files to be converted ready in the specified location,
run Acrobat 6 menu Advanced->AcrobatSDK->PDF Binder to start the operation. There are
echo messages informing you of the operation start and end, but you can change and
rebuild the code to turn off the display on screen.
- An output file PDFBinderOutput.pdf in the same location is created
when the program succeeds. A text log file PDFBinderLog.txt in the same
location records the process and results.
- You can set bEch = false in the code to turn off any display on the screen.
This is necessary when you call the menu function from within other programs
of C IAC, VB IAC, JavaScript.
- An optional file filter is used to pre-process the files. The filter only allows
the files with predefined types to be processed. You can change the file type list
as you wish. Using a filter may ensure a smooth automation process, since you can put
only well-tested file types in the filter. To turn off the filter, you can set
gPDFBinderFileFilter = "" or not to define USE_FILE_FILTER
- Note this is a sample only, developers need to make further improvement for
their actual use. For example, you can set up a list of files to use the method for
the conversion and binding. And you can add code to handle special file types.
@see AVConversionConvertToPDFWithHandler
@see AVConversionEnumToPDFConverters
@see ASFileSysDestroyFolderIterator
@see PDDocOpen
@see PDDocClose
@see PDDocInsertPages
@see PDDocCreatePage
@see PDDocDeletePages
@see PDPageRelease
@see ASFileSysCreatePathName
@see ASFileSysFirstFolderItem
@see ASFileSysNextFolderItem
@see ASFileSysGetNameFromPath
@see ASFileSysReleasePath
ACCB1 void ACCB2 PDFBinderCommand(void*)
// if the menu item clicked with Shift key pressed down, go to interactive mode.
// let the user to choose a folder and process all the file in the folder.
ASText dispText = ASTextNew();
char PDFBinderFolder[MAX_STRING_LENGTH];
ASBool shiftKeyIsDown = ((AVSysGetModifiers() & AV_SHIFT) != 0);
if(shiftKeyIsDown) {
AVOpenSaveDialogParamsRec dialogParams;
// Configure the dialog box parameters.
memset (&dialogParams, 0, sizeof (AVOpenSaveDialogParamsRec));
dialogParams.size = sizeof(AVOpenSaveDialogParamsRec);
dialogParams.windowTitle = ASTextFromScriptText("Choose folder with files to bind",kASRomanScript);
dialogParams.flags |= kAVOpenSaveAllowForeignFileSystems;
dialogParams.initialFileSys = ASGetDefaultUnicodeFileSys();
ASPathName thePath;
ASFileSys fileSys;
AVAppBeginModal(NULL);
if(ASBoolToBool(AVAppChooseFolderDialog(&dialogParams, &fileSys, &thePath)) != true){
AVAppEndModal();
//AVAlertNote("Failed to select the folder");
return;
AVAppEndModal();
#ifdef WIN_PLATFORM
ASFileSysDisplayASTextFromPath(ASGetDefaultUnicodeFileSys(), thePath, dispText);
ASHostEncoding bestEnc = ASTextGetBestEncoding(dispText, (ASHostEncoding)PDGetHostEncoding());
strncpy(PDFBinderFolder, ASTextGetEncoded(dispText, bestEnc), MAX_STRING_LENGTH - 1);
#else
ASPlatformPath aspPath;
ASFileSysAcquirePlatformPath(fileSys, thePath, ASAtomFromString("POSIXPath"), &aspPath);
strncpy(PDFBinderFolder, (char *)ASPlatformPathGetPOSIXPathPtr(aspPath), MAX_STRING_LENGTH - 1);
ASFileSysReleasePlatformPath(fileSys, aspPath);
// remove extra path separator
char e = PDFBinderFolder[strlen(PDFBinderFolder)-1];
if(e == ':' || e == '/')
PDFBinderFolder[strlen(PDFBinderFolder)-1]='\0';
dispText = ASTextFromScriptText(PDFBinderFolder, kASEUnicodeScript);
#endif
ASFileSysReleasePath(fileSys, thePath);
// Otherwise, the hard coded file path will be used.
else {
strcpy(PDFBinderFolder, STRING_PDFBinderFolder);
dispText = ASTextFromScriptText(PDFBinderFolder, kASRomanScript);
// instruction message
char strMsg[MAX_STRING_LENGTH] = "";
sprintf(strMsg, "This function will convert and process Tiff and PDF files in the selected directory. ");
strcat(strMsg, " You need to copy your files in C:\\Fairfax\\Adobe\\in directory." );
strcat(strMsg, " Files will be processed into C:\\Fairfax\\Adobe\\PDFA directory." );
strcat(strMsg, " If you are ready, click OK to continue, or click Cancel to quit. " );
strcat(strMsg, " \nNote you can press down Shift key and click the menu item to have a folder selection. " );
strcat(strMsg, " \nNote you can turn off the echo message by setting bEcho = false and rebuild the code. " );
if(ASBoolToBool(bEcho)==true){
ASInt32 choice = AVAlert(ALERT_CAUTION, strMsg, "OK", "Cancel", NULL, true);
if(choice==2) {
return;
// create a new target pdf file with one empty page
PDDoc TargetPDF = PDDocCreate();
ASFixedRect mediaBox = { fixedZero, ASInt32ToFixed(792), ASInt32ToFixed(612), fixedZero };
PDPage emptyPage = PDDocCreatePage (TargetPDF, PDBeforeFirstPage, mediaBox);
PDPageRelease (emptyPage);
// get available headlers and set our file filter
char ValidExt[MAX_STRING_LENGTH];
memset(ValidExt, 0, MAX_STRING_LENGTH);
#ifdef SHOW_TOPDF_HANDLER_TYPES
// enumerate AVConversioToPDF handlers to get all available file
// types which can be converted to PDF.
AVConversionEnumToPDFConverters(MyAVConversionToPDFEnumProc, (AVConversionEnumProcData) ValidExt);
//AVAlertNote("Converters Defined");
//AVAlertNote(ValidExt);
//AVAlertNote(gPDFBinderFileFilter);
#endif
#ifdef USE_FILE_FILTER
// set File filter
strcpy(ValidExt, gPDFBinderFileFilter);
//AVAlertNote(ValidExt);
#endif
// process all files in the directory
int iNumFiles = 0;
int iNumFilesConverted = 0;
char* Done = "Converted";
char* NotDone = " - ";
char fileName[MAX_FILENAME_LENGTH+1];
ASFileSysItemPropsRec props;
ASFolderIterator iter;
ASPathName aspItem = NULL;
memset(&props, 0, sizeof(props));
props.size = sizeof(props);
//AVAlertNote("Props Defined");
ASPathName theFolder = NULL;
ASFileSys fileSys = NULL;
DURING
#ifdef WIN_PLATFORM
fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("ASTextPath"), dispText);
theFolder = ASFileSysCreatePathName (fileSys, ASAtomFromString("ASTextPath"), dispText, 0);
//AVAlertNote("FileSys and Folder Defined");
#else
fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("POSIXPath"), PDFBinderFolder);
theFolder = ASFileSysCreatePathName (fileSys,
ASAtomFromString("POSIXPath"), PDFBinderFolder, 0);
#endif
if (theFolder==NULL) {
//AVAlertNote("Fail to create ASPathName for the selected folder.");
E_RTRN_VOID
// Find first file in current directory
if((iter = ASFileSysFirstFolderItem(fileSys, theFolder, &props, &aspItem))==FALSE) {
//AVAlertNote("This is either an invalid folder or the folder contains no files.");
E_RTRN_VOID
ASFileSysReleasePath(fileSys, theFolder);
//AVAlertNote("Folder Released");
// get filename only
if(ASFileSysGetNameFromPath(fileSys, aspItem, fileName, sizeof(fileName))) {
E_RTRN_VOID
HANDLER
// exception handling
char errorMsg[256];
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
if(aspItem!=NULL) ASFileSysReleasePath(fileSys, aspItem);
if(theFolder!=NULL) ASFileSysReleasePath(fileSys, theFolder);
// display an error message.
if(ASBoolToBool(bEcho)==true) {
AVAlertNote (errorMsg);
return;
END_HANDLER
//AVAlertNote(fileName);
// go to binding if it's a valid type of file
if(props.type == kASFileSysFile && PassPDFBinderFileFilter(fileName)) {
char outFileName[] = "";
//strcat(outFileName, STRING_PDFOutputFolder);
//strcat(outFileName, FOLDERSYMBOL);
//strcat(outFileName, fileName);
strcat(outFileName, STRING_PDFOutputFolder);
strcat(outFileName, FOLDERSYMBOL);
strcat(outFileName, fileName);
//AVAlertNote(outFileName);
ASPathName outputFileName = ASFileSysCreatePathName (ASGetDefaultFileSys(), ASAtomFromString("Cstring"), outFileName, 0);
BindingFileToPDF(aspItem, fileName, props, TargetPDF, outputFileName ,&iNumFiles, &iNumFilesConverted);
//AVAlertNote("File Processed");
ASFileSysReleasePath(fileSys, aspItem);
// process all other files
while(ASFileSysNextFolderItem(fileSys, iter, &props, &aspItem)) {
// get filename only
if(ASFileSysGetNameFromPath(fileSys, aspItem, fileName, sizeof(fileName))) {
return;
// go to binding if it's a valid type of file
if(props.type == kASFileSysFile && PassPDFBinderFileFilter(fileName)) {
char outFileName[] = "";
//strcat(outFileName, STRING_PDFOutputFolder);
//strcat(outFileName, FOLDERSYMBOL);
//strcat(outFileName, fileName);
strcat(outFileName, STRING_PDFOutputFolder);
strcat(outFileName, FOLDERSYMBOL);
strcat(outFileName, fileName);
//AVAlertNote(outFileName);
ASPathName outputFileName = ASFileSysCreatePathName (ASGetDefaultFileSys(), ASAtomFromString("Cstring"), outFileName, 0);
BindingFileToPDF(aspItem, fileName, props, TargetPDF, outputFileName, &iNumFiles, &iNumFilesConverted);
//AVAlertNote("File Processed");
ASFileSysReleasePath(fileSys, aspItem);
ASPathName pdfPathName = NULL;
DURING
// close the findfile
ASFileSysDestroyFolderIterator(fileSys, iter);
// save and close the output pdf file
// create path
ASText pathText = ASTextNew();
ASTextCatMany(
pathText,
dispText,
ASTextFromScriptText(FOLDERSYMBOL, kASRomanScript),
ASTextFromScriptText(OutputPdfFileName, kASRomanScript),
NULL);
#ifdef WIN_PLATFORM
ASFileSys fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("ASTextPath"), pathText);
pdfPathName = ASFileSysCreatePathName (fileSys,
ASAtomFromString("ASTextPath"), pathText, 0);
#else
char path[MAX_STRING_LENGTH];
strncpy(path, ASTextGetEncoded(pathText,
ASTextGetBestEncoding(pathText, (ASHostEncoding)PDGetHostEncoding())), MAX_STRING_LENGTH - 1);
ASFileSys fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("POSIXPath"), path);
pdfPathName = ASFileSysCreatePathName (fileSys,
ASAtomFromString("POSIXPath"), path, 0);
#endif
if(pdfPathName==NULL) {
E_RTRN_VOID
// delete the empty page
if(PDDocGetNumPages(TargetPDF)>1) {
PDDocDeletePages (TargetPDF, 0,0,NULL, NULL);
// save
//PDDocSave (TargetPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized,
// pdfPathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
PDDocClose (TargetPDF);
//ASFileSysReleasePath(fileSys, pdfPathName);
HANDLER
// exception handling
char errorMsg[256];
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
if(pdfPathName!=NULL) ASFileSysReleasePath(fileSys, pdfPathName);
// display an error message.
if(ASBoolToBool(bEcho)==true) {
AVAlertNote (errorMsg);
return;
END_HANDLER
// use this line to show the massage on screen if you need
//if(ASBoolToBool(bEcho)==true) {
AVAlertNote ("Folder Completed. PDF/A Output files generated.");
return;
/* ConvertAndInsertFileToPDF
/** Internal function \n
** Convert a file to PDF, then insert it to target PDF file.
** @param aFileName IN char string, filename.
** @param PDFfile IN/OUT PDDoc of the target PDF file.
** @return 0 if OK, 1 if failed.
int ConvertAndInsertFileToPDF(ASPathName aPathName, char* aFileName, PDDoc PDFfile)
PDDoc tempPDF;
char* Ext;
DURING
// get file extention
Ext = strrchr(aFileName,'.');
if(Ext) {
Ext++;
else {
E_RETURN (1);
// if the file is PDF, open PDDoc
if(strcmp(Ext,"PDF")==0 || strcmp(Ext,"pdf")==0) {
tempPDF = PDDocOpen (aPathName, ASGetDefaultFileSys(), NULL, true);
if(tempPDF==NULL) {
PDDocClose(tempPDF);
E_RETURN (1);
// else convert it to PDF
else
// let it automatically find right handler for the file and do the job.
AVConversionStatus stat = AVConversionConvertToPDF
(kAVConversionAsyncOkay, //kAVConversionNoFlags
aPathName, ASGetDefaultFileSys(), &tempPDF, NULL);
// check if successful
if(stat != kAVConversionSuccess) {
//AVAlertNote("Cannot convert the file.");
E_RETURN (1);
HANDLER
// exception handling
char errorMsg[256];
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
// display an error message.
if(ASBoolToBool(bEcho) == true) {
AVAlertNote (errorMsg);
return 1;
END_HANDLER
// insert new PDF into target PDF
DURING
// insert all pages of new pdfc to TargetPDFfile.
PDDocInsertPages(PDFfile, PDLastPage, tempPDF, 0,
PDAllPages, PDInsertAll, NULL, NULL, NULL, NULL);
PDDocClose(tempPDF);
HANDLER
char errorMsg[256];
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
if(ASBoolToBool(bEcho)==true) {
AVAlertNote(errorMsg);
END_HANDLER
if(strcmp(Ext,"doc")==0) {
char fname[40];
sprintf(fname,"%s.pdf",aFileName);
remove(fname);
return 0;
/* MyAVConversionToPDFEnumProc
/** Internal callback function \n
** called for every AVConversionToPDFHandler.
** get the valid type (file extention) for the conversion.
** @return true.
ACCB1 ASBool ACCB2 MyAVConversionToPDFEnumProc(AVConversionToPDFHandler handler,
AVConversionEnumProcData data)
ASUns16 numFileExt = handler->convFilter.numFileDescs;
for (int i = 0; i < numFileExt; i++) {
char* ext = handler->convFilter.fileDescs[i].extension;
if(strlen(ext)>0) {
strcat((char*) data, ext);
strcat((char*) data, ",");
return true;
/* this is alternative code to get right conversion handler for a specific file
to be converted. It works with function AVConversionConvertToPDFWithHandler.
It's not used now, but kept for user's reference.
ACCB1 ASBool ACCB2 AVConversionToPDFEnumFindHandler(AVConversionToPDFHandler handler,
AVConversionEnumProcData data)
ASUns16 numFileExt = handler->convFilter.numFileDescs;
for ( int i = 0; i < numFileExt; i++)
char* ext = handler->convFilter.fileDescs[i].extension;
if(strlen(ext)) {
if(!strcmp((char*) data, ext)) {
gHandler = handler;
return false;
return true;
/* BindingFileToPDF
/** Internal callback function for binding process \n
** IN: char* aFilename, ASFileSysItemPropsRec nFileAttrb \n
** PDDoc targetPDdDoc, int *ipTotal, \n
** int *ipConverted, FILE *logfile \n
** OUT: int *ipTotal, int *ipConverted. \n
void BindingFileToPDF(ASPathName aPathName, char* aFilename, ASFileSysItemPropsRec nFileAttrb, PDDoc targetPDdDoc, ASPathName outputPathName, int *ipTotal, int *ipConverted)
// ignore system, hidden files, and our target PDF and log file.
if( nFileAttrb.isHidden
|| (strcmp(aFilename,".")==0) || (strcmp(aFilename,".." )==0)
|| (strcmp(aFilename,OutputPdfFileName)==0) || (strcmp(aFilename,LogFileName)==0)) {
return;
(*ipTotal)++;
char msg[MAX_STRING_LENGTH] = "";
char* Done = "Converted";
char* NotDone = " - ";
// try to convert and insert it to target PDF file.
// rc would be 0 for success, otherwise 1.
int rc = ConvertAndSavePDFInTargetFolder(aPathName, aFilename, targetPDdDoc, outputPathName);
// if converted
if(rc==0) {
(*ipConverted)++;
/* PassPDFBinderFileFilter
/** Internal callback function for binding process
** @return true if the IN aFilename is a valid file for PDF conversion,
** otherwise false.
ASBool PassPDFBinderFileFilter(char* aFilename)
#ifdef USE_FILE_FILTER
// if the filter is empty, any file will pass.
if(strlen(gPDFBinderFileFilter)==0)
return true;
char* Ext = strrchr(aFilename,'.');
if(Ext!=NULL) {
Ext++;
if(strstr(gPDFBinderFileFilter, Ext)) {
return true;
return false;
#else
// not use filter, any file will pass.
return true;
#endif
/* ConvertAndInsertFileToPDF
/** Internal function \n
** Convert a file to PDF, then insert it to target PDF file.
** @param aFileName IN char string, filename.
** @param PDFfile IN/OUT PDDoc of the target PDF file.
** @return 0 if OK, 1 if failed.
int ConvertAndSavePDFInTargetFolder(ASPathName aPathName, char* aFileName, PDDoc PDFfile, ASPathName outputPathName)
PDDoc tempPDF;
char* Ext;
DURING
// get file extention
Ext = strrchr(aFileName,'.');
if(Ext) {
Ext++;
else {
E_RETURN (1);
// if the file is PDF, open PDDoc
if(strcmp(Ext,"PDF")==0 || strcmp(Ext,"pdf")==0) {
tempPDF = PDDocOpen (aPathName, ASGetDefaultFileSys(), NULL, true);
if(tempPDF==NULL) {
PDDocClose(tempPDF);
E_RETURN (1);
// else convert it to PDF
else
// let it automatically find right handler for the file and do the job.
AVConversionStatus stat = AVConversionConvertToPDF
(kAVConversionAsyncOkay, //kAVConversionNoFlags
aPathName, ASGetDefaultFileSys(), &tempPDF, NULL);
// check if successful
if(stat != kAVConversionSuccess) {
//AVAlertNote("Cannot convert the file.");
E_RETURN (1);
else {
//change Extension
ASText asTmp = ASTextNew();
ASFileSysDisplayASTextFromPath(ASGetDefaultUnicodeFileSys(), outputPathName, asTmp);
//AVAlertNote(ASTextGetScriptText(asTmp, kASRomanScript));
if(strcmp(Ext,"TIF")==0 || strcmp(Ext,"tif")==0){
ASTextReplace(asTmp, ASTextFromScriptText(".tif", kASRomanScript), ASTextFromScriptText(".pdf", kASRomanScript));
} else {
ASTextReplace(asTmp, ASTextFromScriptText(".tiff", kASRomanScript), ASTextFromScriptText(".pdf", kASRomanScript));
//AVAlertNote(ASTextGetScriptText(asTmp, kASRomanScript));
outputPathName = ASFileSysCreatePathName (ASGetDefaultUnicodeFileSys(), ASAtomFromString("ASTextPath"), asTmp, 0);
HANDLER
// exception handling
char errorMsg[256];
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
// display an error message.
if(ASBoolToBool(bEcho) == true) {
AVAlertNote (errorMsg);
return 1;
END_HANDLER
// Run OCR and Save new PDF into target PDF
DURING
// OCR
ASAtom cmdName;
AVCommand cmd;
cmdName=ASAtomFromString("PaperCapture");
cmd=AVCommandNew(cmdName);
ASCab config = ASCabNew();
ASCabPutInt (config, "UIPolicy", kAVCommandUISilent); //hide the interface
if (kAVCommandReady == AVCommandSetConfig (cmd, config)) {
//AVAlertNote("Config Ready");
ASCab inputs = ASCabNew();
ASCabPutPointer (inputs, kAVCommandKeyPDDoc, PDDoc, tempPDF, NULL);
if (kAVCommandReady == AVCommandSetInputs (cmd, inputs)) {
//AVAlertNote("Input Ready");
ASCabDestroy (inputs);
AVCommandStatus status = AVCommandExecute(cmd);
//switch (status) {
// case kAVCommandReady :
// AVAlertNote("Not working, but ready to work.");
// break;
// case kAVCommandWorking :
// AVAlertNote("Still working");
// break;
// case kAVCommandDone :
// AVAlertNote("Done working");
// break;
// case kAVCommandInError :
// AVAlertNote("In Error");
// break;
// case kAVCommandNotExecuted :
// AVAlertNote("Command not executed due to lack of objects on which the command to be executed");
// break;
AVCommandDestroy(cmd);
//Save
//PDDocSave (tempPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized, outputPathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
//ClosePDF
//PDDocClose(tempPDF);
//Convert to PDF/A Compliance
//Select the right handler
AVConversionEnumFromPDFConverters(myAVConversionFromPDFEnumProc, NULL);
// do conversion
AVConversionStatus stat = AVConversionConvertFromPDFWithHandler(RightHandler, NULL, kAVConversionAsyncOkay, tempPDF, outputPathName, ASGetDefaultFileSys(), NULL);
// check the returned status and show message
//if (stat == kAVConversionSuccess)
// AVAlertNote( "The PDF/A file was saved in output folder." );
//else if (stat == kAVConversionFailed)
// AVAlertNote( "The PDF/A conversion failed." );
//else if (stat == kAVConversionSuccessAsync)
// AVAlertNote( "The conversion will continue asynchronously." );
//else if (stat == kAVConversionCancelled)
// AVAlertNote( "The conversion was cancelled." );
//Save
//PDDocSave (tempPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized, outputPathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
//ClosePDF
PDDocClose(tempPDF);
ASFileSysReleasePath(ASGetDefaultFileSys(), outputPathName);
HANDLER
char errorMsg[256];
ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
if(ASBoolToBool(bEcho)==true) {
AVAlertNote(errorMsg);
END_HANDLER
if(strcmp(Ext,"doc")==0) {
char fname[40];
sprintf(fname,"%s.pdf",aFileName);
remove(fname);
return 0;
//Select the appropiate handler for the PDF/A conversion
static ACCB1 ASBool ACCB2 myAVConversionFromPDFEnumProc(AVConversionFromPDFHandler handler, AVConversionEnumProcData data)
AVFileFilterRec filter = handler->convFilter;
ASUns16 numFileExt = filter.numFileDescs;
char *kUniqueID = handler->uniqueID;
// go through the conversion handlers to find a handler for PDF extension files and the unique key matches the PDF/A one.
for (ASInt32 i = 0; i < numFileExt; i++)
if (strlen(handler->convFilter.fileDescs[i].extension)>0)
// found it, fill in the handler and return false to stop going on.
if (!strcmp(handler->convFilter.fileDescs[i].extension, "pdf") && !strcmp(kUniqueID,"com.callas.preflight.pdfa")) {
RightHandler = handler;
return false ;
return true;There are some options for various APIs to run "kinda silent" - but again, Acrobat is designed for INTERACTIVE use…so "completely silent" isn't really an option.
As for speed – you'd need to be MUCH MORE specific about where your slow downs are. Have you profiled?
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Mon, 12 Dec 2011 07:39:08 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Slow processing and getting opening errors/warnings
Re: Slow processing and getting opening errors/warnings
created by FFX-ER<http://forums.adobe.com/people/FFX-ER> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4079175#4079175 -
i get constant buffering very slow downloads and the pinwheel. is there a keystroke remedy for this??
No magical keystroke remedy. The causes for this can be complicated.
http://www.thexlab.com/faqs/sbbod.html
Also check the health of the drive with the free demo of SMART Utiltiy.
http://www.volitans-software.com/smart_utility.php
Only happening while on the Internet or all over the place? What's your Internet speed?
http://www.speedtest.net/ -
What is wrong with the app store and how long before its fixed, im downloading atna very slow pash and i have a 10mb uncontested line.
Sorry, its on both my iphone 4s (2 iphones) and ipad2 that the app store is slow, I have done all the above and still when i download a 1 mb app it take about a half a hour just to download and previously it wasn't even a second. When browsing the web the devices are fast and internet speed is good, but when going in to app store it takes long to load and show me the new app, updates, featured app ect. We watch movie online and the streaming is brilliant. Even on my windows pc the app store is slow and sometimes says that i store could not be opened, i have also tried on my buddies wifi and there it does exactly the same which makes me think that its on apples side, but why do you not have any problems?
-
I am experiencing very slow import and backing up issues.
I am experiencing very slow import and backing up catalog on exiting Lightroom. This is a very recent issue. I use RAW files.
The type of files you are importing will have an effect on the speed of the import process. Larger files, like raw sensor files, are normally much larger than JPG files.
But if this is something new, the slowness, and you are using the same camera with the same size files as previously then it's not just the file size.
What type of computer and what operating system are you using. -
My iphone 3g is very slow when accessing the internet is there anyway i can improve this
my iphone 3g is very slow when accessing the internet is there anyway i can improve this
What have you done thus far to try and remedy your situation? Have you taken the recommended basic troubleshooting steps outlined in the User Guide?
-
Ipod classic 160GB very slow sync and cannot connect to itunes store windows 7 ansd itunes 10.6.0.40. I have now been trying for 3 weeks to restore my iPod. Really frustrated, any ideas would be welcome.
Cured the problem! Reinstalled an earlier version of itunes from oldapps.com (version 10) now everything works as it should. I would suggest that if you are experiencing these problems that you do the same. I must say that it is a brave business decision on behalf of apple to effectively lock out all windows 7 users from their products and sales channels and I can only wish them luck in this very shortsighted policy.
Maybe you are looking for
-
Strange boxes instead of type in dialogue boxes...
I don't know what changed, but recently, when OS X asks me for my admin password, I get a regular dialogue box, but all the type is in some strange font. Instead of letters, everything is the same black outlined box with an "A" in it. It looks like t
-
Boot Camp did not install on this machine, can't find it at all post install of 10.5.4. Help? Thanks!
-
Hi all, I want to add a new field in ME21N transaction, please tell me how to add new field in table control in ME21n tcode. I tried by using variant but according to my requirement invisible fields are not useful. I want to add a new field called
-
Hi, I have a RVS4000 router with DHCP enabled and in router mode. The LAN is 192.168.2.x. The RVS4000 static IP address is 192.168.2.8 The router is not the RVS4000 and is at 192.168.2.1 The RVS4000 dhcp is assigning it's clients a default gateway
-
MHKIM:(AP) PREFIX OF AP INVOICE NUMBER
QUESTION =========== AP number가 ERS + 날짜 + 일련번호 (예> ERS-12-DEC-06-3) 이런식으로 생성되서 output에 ap number가 다 보이지 않습니다. 그리고 날짜 형식이 저희가 평소에 보는 형식과 많이 달라서 YYMMDD형식으로 나왔으면 하는데.. 수정 가능한지 알고 싶습니다. 참고로, 저희 AP NUMBER 규칙은 YYMMDD + PO + 일련번호 (예>061206-PO-003) 입니다. 똑같이