PDFClown - Compressing PDF - pdfclown

I am trying to compress PDF files using PDFClown 0.1.2, but i am facing issue like when i try to open PDF it says "An Error exists on this page"
also tried the approach mentioned in link
Stack
Below is the my code
org.pdfclown.files.File file = new org.pdfclown.files.File(newPath);
org.pdfclown.tools.Optimizer.RemoveOrphanedObjects(file);
file.Document.Configuration.XrefMode = Document.ConfigurationImpl.XRefModeEnum.Compressed;
file.Save(org.pdfclown.files.SerializationModeEnum.Standard);
Please let me know if any one has face the same issue
Thanks

Related

Issue uploading specific PDF documents within my Laravel CRM application

I was hoping someone could shine some light on a strange issue I have stumbled across recently within my Laravel CRM application. I am using MultiCRM + Laravel BAP to operate a small CRM system on my server.
The issue I am experiencing is that when I upload "specific" PDF documents through the CRM's AJAX file uploader, the file uploads and reaches the 100% stage and thereafter the following error is being returned:
Unprocessable Entity
I have reviewed the error status/message within the Network tab of my Developer Console and I am seeing the following error:
The given data was invalid - The files must be a type of Jpg, jpeg,
png, pdf, txt, doc, docx
Some PDF's I can upload perfectly fine whereas other PDF's seem to be failing. I have checked the Properties of the file which I am attempting to upload and I can confirm that the file extension resembles the exact same of the PDF files which are uploading perfectly fine.
I have also reviewed the max_upload_size and post_max_size within my php.ini and I can confirm the values set in there are fine. I have tried to upload larger zip files 20mb+ to rule out any file upload size limits, and I can confirm that the zip files in question uploaded and saved perfectly fine.
I am just a little confused with why certain PDF files will upload and others won't.
If there any particular files which you should need to see, please let me know and i would be happy to provide the source code :-)

Xamarin bug with ClosedXML : "system.io.ioexception: operation not valid when package is read-only at system.io.packaging..."

I'm using Xamarin Studio to work on a C# console application. I am working with ClosedXML in order to manipulate data from an excel file.
I am getting the error
system.io.ioexception: operation not valid when package is read-only at system.io.packaging.....
When I try to read from the excel file, but the excel file is not read only.
var wb = new XLWorkbook(TestProductsXlsx);
I have tried to look on the internet but it seems that this bug has not been fixed. Can someone please help ?
Thanks
Looks like this will end up being in a Mono 4.4 release according to the comments on https://github.com/OfficeDev/Open-XML-SDK/issues/39

Dreamweaver Spry Menu2 widget not working

apologies if this has been covered but I have searched for an answer on the internet.
I need to create a spry menu in dreamweaver. First I used sprymenu 1, but found that it didn't work on an ipad. So then I was directed to the SpryMenu2 widget.
My problem is that when I try to upload this onto my server I keep getting the error message 'SpryMenu.js requires SpryWidget.js!' I have checked, and these files are all uploaded.
Question: how do I fix this error, OR is there an alternative to create a spry-type menu that will work on an ipad?
many thanks for any help
I've recently encountered this. Make sure the file size of SpryWidget.js is the same size as the on in dreamweaver.
I first uploaded with Filezilla and got this error. Then I tried DW upload and still got the error. Lastly, I went directly to GoDaddy's FTP file manager and uploaded and it fixed the problem. For some reason it was being changed when uploading on DW or FZ. Now if I can only find out why mine won't work on mobile...
Best of luck

Drupal Image cache issue

I am using Drupal6 and image cache was working fine earlier...but last few days its not working and it throwing error "The image cannot be displayed because it contains errors." Earlier i have this issue and i solved it my removing some white space before the
For example, if i have image URL, like this, http://localhost/drupal/sites/defaults/files/imagecache/profile_85/pictures/vinodkumar_8542.jpg
its showing correctly in the browser, but the same image is not working when i use path like this
http://localhost/drupal/index.php?q=sites/defaults/files/imagecache/profile_85/pictures/vinodkumar_8542.jpg
Please help me in solving this big issue...
This happened to me because i did a custom module with a different encoding i found my module contains "i<< j" before "php tags" that made my image corrupted as it added this encoding at the header of the image .. Check your files . you can try to install image captcha to see if the drupal can generate image or not if not then you can try my solution as it worked for me after a hell of times.
you can check this sites :
http://drupal.org/node/1843304
http://drupal.org/node/1302076
http://drupal.org/project/issues/imagecache?status=All&categories=All "check open issues"

Export to PDF file

I am evaluating Teechart 4.1.2012.2287 and I have a problem with the export to PDF function.
My project is written in VS2010, using VB.Net and framework 4.0, and I have Adobe Reader 9.4.7 on my PC.
When I try to open a PDF generated by TChart it says there is an error with the file.
I also get this problem using your Example application.
Is there a version requirment for the Reader?
I'm afraid this is a bug. I get this error message:
An error exists on this page. Acrobat may not display the page
correctly. Please contact the person who created the PDF document to
correct the problem.
Do you get the same? Anyway, I added the issue (TF02016129) to the bug list to be investigated.

Resources