I have downloaded some sample corelDraw projects from different resources, which has sizes in the range of 1-10 MB, but, when i open them using corel menu's "File open" option it give me error "Either it is not importable using selected filter or this format is not supported" I tried alternatives ways to open these files but failure!
Please note that
These are the files with cdr extensions.
They got sizes in MB's whose range is mentioned above
How can I make these files usable!
Thanks!
You can try to import them File --> Import,
Or maybe your Corel Version is lower then project files
Related
I am using openpyxl to automatically append data. My excel file has picture widgets(Text box) like shown below (highlighted). But the picture widgets are deleted after append. Also, I get the error: "Removed Feature: Named range from /xl/workbook.xml part (Workbook)", "Removed Part: /xl/drawings/drawing3.xml part. (Drawing shape)". Can anyone please let me know how to resolve this.
Thanks in advance!
Openpyxl can't read images directly (documentation: https://openpyxl.readthedocs.io/en/default/usage.html). There are some types of image it won't save at all.
Warning:
openpyxl does currently not read all possible items in an Excel file so images and charts will be lost from existing files if they are opened and saved with the same name.
However, there are some nice solutions on this old post, even though openpyxl functionality has changed since then. Particularly, installing Pillow via pip may help you: Images dissapear in excel documents when copying them with python
The alternative is to use libraries other than openpyxl. I have previously had cause to use openpyxl for some functions, and then stitch final image-containing documents together with win32com on Windows, for example.
When I use the Excel "Document Inspector" on a particular .xls file to check for "hidden properties or personal information" it says:
The following document information was found:
* Absolute path to the workbook
How can I obtain the absolute path of the workbook from the file? If it needs to be done programmatically, I could use Java (e.g. Apache POI) or VBA.
I know where the file is currently saved, but what I want to extract is the absolute path to the workbook which is saved in the file I have. This is so I can know where it was saved by the author.
Here's what has happened to the file:
Someone authored it, saving it at some absolute filepath unknown to me
They uploaded it to a website
I downloaded it from the website
Excel indicates that the document contains the absolute path from step 1. I'm after this path, not the place I saved it at step 3 since I know that.
I can reproduced that warning message by simply creating an empty Excel file, added a formula, saved it as BIFF8 (.xls). The Document Inspector will then warn about the absolute path. ... but in my case, there was no filename inside the file.
A simple way to verify this, is to open the file in a hex-editor and search for a well-known save location (i.e. the location where a dummy/test file was stored) - this is either stored as ASCII or as 16-bit string, i.e. every odd byte is a character.
If you want to use the POI developer tools, you can use the following:
To list all Excel records:
java -cp poi-3.16-beta1.jar org.apache.poi.hssf.dev.BiffViewer file.xls
To list the document and summary properties:
java -cp poi-3.16-beta1.jar org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor file.xls
To list any embedded objects beside the usual suspects SummaryInformation, DocumentSummaryInformation and Workbook:
java -cp poi-3.16-beta1.jar org.apache.poi.poifs.dev.POIFSLister file.xls
So after running the tools and recording the output, you can then remove the properties via the Excel Document Inspector and execute the tools again. The output can be diffed and you might find the culprit.
Assuming it is an .xlsx file rather than an older-style .xls file, you can
Rename the workbook as a .zip file
Look at the xl\workbook.xml "file" within the .zip file
and you will find the absolute path when last saved from Excel.
This is why it is not a good idea to share work-related spreadsheets with other people, unless you first clear out this sort of information.
I'm not sure how to find it in the binary format files.
I want to sent mxd and qgs file to someone.
Do the layers have to be in the same folder as the mxd and qgs file (unzipped) in order for the other person to be able to see the shapefiles when they open the projects?
Well, in the case of mxd files (ArcGIS for Desktop) it depends if "Store relative pathnames to data sources" option is checked. You can find it in File --> Map Document Properties.
If it's checked than ArcGIS for Desktop will search for layers relatively to the mxd file. If it's not, than it'll search for them in exact location you added them from.
You can find more info in the ArcGIS documentation on referencing data in the map, as well as here or here.
I believe it's similar for qgs i.e. Quantum GIS.
Hi I am Rookie in VBA,
Is it possible to search within PDF files using VBA? And return the searched target with the name of the file in which the search is matched?
To give you a better understanding what I do: I have a macro that goes on web page (http://cetatenie.just.ro/ordine/articol-11/) loops through the hyperlinks and downloads the matching criteria files (PDF). Now I need to search within them a name and surname (i.e. BLANARI VITALIE) and know in which file/doc it is published.
The only idea that come into my head is to import data but than again the excel file will get too huge.
Please help!
if you have Acrobat Professional installed you can use the Automation (Acrobat.AcroPDDoc) and query the Postscript
Here is an example I found for you (by searching on Google):
get the data from PDF file into Excel sheet(s) or text file(s)
to use this code, you need the below References:
AcroPDFLib
Acrobat
on my pc they are in:
AcroPDFLib: C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroPDF.dll
Acrobat: C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.dll
if you can't find them in your VB Editor References dialog, or by searching for in C:\Program Files\Adobe, then you don't have the necessary components installed on your pc to do it the easy way
The hard way is to strip the PostScript and read it into variables then search the variables!
HTH
Philip
PREFACE: Yes we're moving away from VSS in the next few months.
One of my web projects contains, as one of its files, a PDF. The PDF on our QA site is being pulled from VSS.
A QA tester recently told me he's being prompted for a password when he tries to open it. VSS says the file I have on disk is different than the one it has, so I updated it, but afterwards it's still being shown as different.
So basically VSS is mangling my PDF and the results are so wobbly that Adobe Acrobat Reader is confused and thinks it has a password.
I've tried adding it as Auto-Detect and as Binary. Same results.
Why does my PDF ask for a password after being retrieved from Visual SourceSafe and how can I prevent it?
Do you have the SourceSafe 2005 Update installed?
Handy list of known issues: http://blogs.msdn.com/richardb/archive/2007/06/06/list-of-bugs-fixed-in-sourcesafe-2005-gdr.aspx
The PDF bug was one of the most commonly requested hotfixes: http://support.microsoft.com/kb/925234
I've tried adding it as Auto-Detect and as Binary. Same results.
To be clear, are you adding a version of the file you know is not already corrupted? Even so, there are plenty of other bug fixes on the list above which can cause random file corruption -- try that first.
You can remove PDF password by this tool:
Advanced PDF Password Remover 5.0
Step 1: Import PDF files
Click the "Add File(s)" button, browse your computer to find the PDF files and load them.You can import as many as 200 PDF files into this program for every batch processing.The imported files are listed in the file list window as below.
Step 2: Set output folder
You can customize a folder to save the output files all together. The default folder is My Documents\Advanced PDF Password Removerr. Click "Brows" button to specify a folder on your computer, or you can make a new folder manually in the text box.
Step 3: Remove restrictions
Click "Start" button, and the files are processed one by one.
"SUCCEED" is displayed in the Result column after the removing process is finished.