How to minimize the file size of a file with drawing markups
Scenario:
I need to turn a sample of a report into a report template, so I am deleting as many objects as I can with the Tools>Content>Edit Object. For text that I cannot delete that way, I am covering it up with a white box (Comment>Drawing Markups>square and setting outline = white and fill = white). On this particular PDF, there are about 20 of these white boxes. I'm then using Preflight>Flatten annotations and form fields to flatten all of the markups.
Problem:
Unfortunately, even after using Preflight and Save As>Reduced Size PDF, the file size is still over 900 kb. The original file size before I make any changes is less than 150 kb. I need the final file size to be 200-300 kb.
Settings:
Windows 7
Adobe Acrobat X Pro
Solutions?
I may be going about this all wrong, so any advice you have is much appreciated! The only other thing I can think of to do (since I can't get a blank sample report), is to recreate the report in Word and then PDF it. I'm hoping there's a better solution. I tried Photoshop first and the file sizes were in the MBs, so I switched to Acrobat. Maybe a different program would work even better?
Basically that is what Bill is telling you. The best method is to:
create the design of the form in Word.
Save as a PDF (on a Mac the best method is to go to print menu click pdf and hold mouse or track pad button down, and Chose Adobe PDF) .
Then open PDF in Acrobat
Click on Tools
Click on Forms and create form. Either letting acrobat create the fields and add or take away fields as need. Or create fields manually.
This way should you need to make correction you can open the original Word Document, Make chages save as PDF The in open original in PDF. Click on Tools > Pages and choose replace pages and replace desired page(s) as needed. Then readjust fields if needed or add or take fields as needed.
Similar Messages
-
How to delete the file with space in name
Hi
I want to delete the file "test ex.txt" file.
i run the following command in command prompt.i can delete the file successfully.
/bin/rm -f /mnt/"test ex.txt"
I want to run the command from java.So i am using the following code
String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
Runtime rt = Runtime.getRuntime();
process = rt.exec(cmd);
The file was not deleted.
How to delete the file with space in name?
Help meUse the form of exec that takes an array of command + args.
arr[0] = "/bin/rm"
arr[1] = "-f"
arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls. -
Rarcrack - how long for the file with 400 MB ?
Hi everyone
I'm trying to get the password in the encrypted file with 400 MB. It's more time I thought.
If someone have used the program, rarcrack, can you tell me know that get the password with special characters ?
For example:
The encrypted file with 400MB + the passwords "?_123_123_abc_@theworld".
How long for that ?
Thank you very much.
Last edited by luckybc (2014-12-26 06:29:07)Does rarcrack know how long the pass-phrase is or not?
Also, are you using a dictionary/removing obvious choices of pass-phrase to help speed up the process OR are you brute-forcing every single pass-phrase from the ASCII alpha-numeric alphabet + punctuation?
TL;DR: Assuming I've done the Maths correctly, a damn sight longer that you might have thought
Since you haven't said, I'm going to assume YES to the first question and I'm assuming you're brute forcing, to make the maths simpler.
For one character position you're looking at about 26 lower case + 26 upper case + 10 digits + 10 punctuation marks of some sort. So that's 72 characters. You've got 22 characters in the passphrase, so that's a potential of 72^22 = 7.26632672153 x 10^40 pass-phrase combinations.
Now let's assume you're doing this on modern hardware, with an SSD on a single machine which can process something at the rate of 200MB/s. That's two seconds a pass. That'll take you about 2.01842408931 x 10^37 hours.
Disclaimer: I'm working off the assumption that encryption has been used, and that rarcrack would decrypt the whole file on each attempt (pass-phrase protection and encryption are different things...). I don't actually know how it works, but for those that do know how it does, you can probably work out the time from the number of pass-phrase combinations.
Last edited by clfarron4 (2014-12-26 12:01:20) -
pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?
The other alternative is the Save As Other>Reduce File Size. The PDF Optimizer gives you more control. You might also use the audit feature in the PDF Optimizer to see where the size problem is coming from. You might find that in the WORD file you can select and image and then go to the FORMAT (pictures) menu and select compress for all of the bitmaps in the file. That will typically use 150 dpi by default that is adequate for most needs.
-
How to get the file size (in bytes) for all files in a directory?
How to get the file size (in bytes) for all files in a directory?
The following code does not work. isFile() does NOT recognize files as files but only as directories. Why?
Furthermore the size is not retrieved correctly.
How do I have to code it otherwise? Is there a way of not converting f-to-string-to-File again but iterate over all file objects instead?
Thank you
Peter
java.io.File f = new java.io.File("D:/todo/");
files = f.list();
for (int i = 0; i < files.length; i++) {
System.out.println("fn=" + files);
if (new File(files[i]).isFile())
System.out.println("file[" + i + "]=" + files[i] + " size=" + (new File(files[i])).length() ); }pstein wrote:
...The following code does not work. Work?! It does not even compile! Please consider posting code in the form of an SSCCE in future.
Here is an SSCCE.
import java.io.File;
class ListFiles {
public static void main(String[] args) {
java.io.File f = new java.io.File("/media/disk");
// provides only the file names, not the path/name!
//String[] files = f.list();
File[] files = f.listFiles();
for (int i = 0; i < files.length; i++) {
System.out.println("fn=" + files);
if (files[i].isFile()) {
System.out.println(
"file[" +
i +
"]=" +
files[i] +
" size=" +
(files[i]).length() );
}Edit 1:
Also, in future, when posting code, code snippets, HTML/XML or input/output, please use the code tags to retain the indentation and formatting. To do that, select the code and click the CODE button seen on the Plain Text tab of the message posting form. It took me longer to clean up that code and turn it into an SSCCE, than it took to +solve the problem.+
Edited by: AndrewThompson64 on Jul 21, 2009 8:47 AM -
How to get the correct size of the loaded swf file?
final public class main extends Sprite
public function main()
loaderInfo.addEventListener(Event.COMPLETE, _onLoadCompleted);
private function _onLoadCompleted(event: Event): void
var tw: int = stage.width;
var th: int = stage.height;
var tsw: int = stage.stageWidth;
var tsh: int = stage.stageHeight;
Above is my simple as3 project in flex builder 3.
My screen resolution is 1920*1080, when debugging, the swf is stretched to the full client area of the IE, but the stage.stageWidth is 500 and the stage.stageHeight is 375, both the stage.widht and stage.height are 0, who can tell me why and how to get the right size of the swf file, named the client area size of the IE in this situation?
Thanks very much!The HTML wrapper might resize the SWF later, so wait a frame and check stageWidth/stageHeight again.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
I cannot figure out how to change the photo size on my iPhone 5s. The first time I took a pic it asked if I wanted smalll, medium or large and listed the pixels. I chose small but am now finding that is too small. Can anyone help me set it to medium now? I can't find any setting for that. I'm a newby to iPhones and have no idea what I'm doing. Thanks for any help you can offer.
By "sending" do you mean sending email?
If so, what app are you using to take the photos on your iPhone 5? Or are the photos from a different source (saved to your Camera Roll from somewhere else, like a web page or Messages)?
My guess is that Mail gives you the option to send different file sizes when it detects you are trying to Mail a really large photo file. The size of photos on the iPhone 5 is really big and some email providers may stop your mail from being delivered if attachments are too large. Thus, Mail tries to help you by offering to resize the photo.
I suspect that if you are sending smaller files, Mail does not bother giving you options to save a smaller version. In fact, I have seen this behavior. So, if the photo is already "small enough", it gets sent as-is.
To my knowledge, there is no global iOS setting for this. Some apps may have different rules, of course. -
How to put the file name in notepad file
dear frank,
how to put the file name in notepad file via power shell. I mean i want to put the file name in that notepad file
for example,
my file name is ABL and in this file data is
02/06/2015,180.00,182.00,176.01,180.50,1575500
02/06/2015,4.20,4.20,4.20,4.20,500
02/06/2015,113.50,113.70,112.91,113.09,157800
02/06/2015,682.01,695.90,682.00,683.19,4250
02/06/2015,213.98,215.00,213.00,214.87,326200
02/06/2015,21.52,21.65,21.52,21.60,4000
02/06/2015,111.00,111.25,108.25,108.91,17100
02/06/2015,52.00,52.00,52.00,52.00,500
and i want to data in this form
ABL,02/06/2015,180.00,182.00,176.01,180.50,1575500
ABL,02/06/2015,4.20,4.20,4.20,4.20,500
ABL,02/06/2015,113.50,113.70,112.91,113.09,157800
ABL,02/06/2015,682.01,695.90,682.00,683.19,4250
ABL,02/06/2015,213.98,215.00,213.00,214.87,326200
ABL,02/06/2015,21.52,21.65,21.52,21.60,4000
ABL,02/06/2015,111.00,111.25,108.25,108.91,17100
ABL,02/06/2015,52.00,52.00,52.00,52.00,500
There are many file like this that i want to be edit
plese tell me how can i do it, i think it is possible via windows power shell.
thanks in advance.Hi
Just for completeness, what version of VB.NET are you using?
Here is a complete project to copy all the files with the added "ABL," at the start of each line. You need to start a new Project with a BLANK default Form1, and replace all of Form1 code with the code below. When you run this project, you
need to use the 2 buttons to set up the ORIGINAL file folder and a folder to place the copies. You need to check if the file EXTENSION is correct (I assumed txt), and check the text to add to each line is correct. Once all is set up you should have a
big red button to start the operation.
NOTE: it is important that you try this out on a copy of some of the files to verify accuracy BEFORE trying on original files. Make sure you have a good back up of the original files before doing anything else.
' new project with default BLANK Form1
' replace all Form1 code with this code
' WARNING: make sure you have a backup of
' any files you use this application to
' operate on.
Option Strict On
Option Infer Off
Option Explicit On
Public Class Form1
Dim OrigFileFolderPath As String = Nothing
Dim CopyToFolderPath As String = Nothing
Dim lab1, lab2, lab3 As New Label
Dim tb1, tb2, tb3 As New TextBox
Dim b1, b2, b3, b4 As New Button
Dim fb As New FolderBrowserDialog
Dim bgw As New System.ComponentModel.BackgroundWorker
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.Size = New Size(731, 300)
With lab1
.Text = "Original Files Folder Path"
.Location = New Point(15, 5)
End With
With tb1
.Width = 560
.Location = New Point(10, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab2
.Text = "Copy Files to Folder Path"
.Location = New Point(15, 125)
End With
With tb2
.Width = 665
.Location = New Point(10, 150)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab3
.Text = "File Ext"
.Location = New Point(600, 5)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With tb3
.Text = ".txt"
.Width = 80
.Location = New Point(590, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.TextAlign = HorizontalAlignment.Center
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With b1
.Text = "Choose Original Files Folder Path"
.AutoSize = True
.Location = New Point(10, 65)
End With
With b2
.Text = "Choose Copy Files to Folder Path"
.AutoSize = True
.Location = New Point(10, 185)
End With
With b3
.Text = "DO THE COPY"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
With b4
.Text = "CANCEL JOB"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
Me.Controls.AddRange({lab1, lab2, lab3, tb1, tb2, tb3, b1, b2, b3, b4})
With bgw
.WorkerReportsProgress = True
.WorkerSupportsCancellation = True
End With
AddHandler bgw.DoWork, AddressOf bgw_DoWork
AddHandler bgw.RunWorkerCompleted, AddressOf bgw_Completed
AddHandler b1.Click, AddressOf b1_Click
AddHandler b2.Click, AddressOf b2_Click
AddHandler b3.Click, AddressOf b3_Click
AddHandler b4.Click, AddressOf b4_Click
End Sub
Private Sub b1_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = False
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb1.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b2_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = True
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb2.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b3_Click(sender As Object, e As EventArgs)
b3.Visible = False
b4.Visible = True
If Not tb3.Text.StartsWith(".") Then tb3.Text = "." & tb3.Text
bgw.RunWorkerAsync()
End Sub
Private Sub b4_Click(sender As Object, e As EventArgs)
bgw.CancelAsync()
End Sub
Private Sub ReadPWFile(fn As String)
Dim filename As String = My.Computer.FileSystem.GetName(fn)
Dim barename As String = IO.Path.GetFileNameWithoutExtension(fn)
Dim copyto As String = tb2.Text & "\" & filename
Dim line As String = Nothing
Dim lines As New List(Of String)
Using sr As IO.StreamReader = New IO.StreamReader(fn)
Do
line = sr.ReadLine()
If Not line = Nothing Then
lines.Add(barename & "," & line)
End If
Loop Until line = Nothing
End Using
Using sw As IO.StreamWriter = New IO.StreamWriter(copyto)
For Each s As String In lines
sw.WriteLine(s)
Next
End Using
End Sub
Private Sub bgw_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs)
Dim ftc As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(tb1.Text)
For Each f As String In ftc
If bgw.CancellationPending Then
e.Cancel = True
Exit For
End If
Dim ex As String = My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower
If My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower = tb3.Text.ToLower Then
ReadPWFile(f)
End If
Next
End Sub
Public Sub bgw_Completed(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs)
tb1.Text = Nothing
tb2.Text = Nothing
b3.Visible = False
b4.Visible = False
MessageBox.Show("Finished copying files", "Job Completed")
End Sub
End Class
Regards Les, Livingston, Scotland -
Hi, I am using Indesign CS6, How to set the page size in Inches.
Hi, I am using Indesign CS6, How to set the page size in Inches.
All fields in InDesign can be entered in any measurement system. So, if you want to make an 8"x10" document and go to File>New Document and the window looks like this:
…you can type either 8 in or 8" into the Width field like this:
…and when you move to the next field, it will convert the eight inches into the equivalent number in the unit of measure that it is using at the moment, like this:
… (203.2 milimeters is the same as 8 inches). You can also enter a different measurement unit into other fields once the file is created, such as the width or height of a frame, or the position of an object in the X and Y coordinates.
If you would rather just work in inches instead of having to type the inches mark or abbreviation, go to InDesign>Preferences>General and select the Units & Increments tab. There you will see Ruler Units for Horizontal and Vertical at the top of the window. Set them to Inches and all of the fields will display in inches. If you do that to an open document, you will change the unit of measure for that document. If you do it while no documents are open, it will change the unit of measure for any new documents you create. To change the unit of measure for existing documents, you will have to open each and make the change. -
How to change the font size of Text Box Properties Appearance tab into 2 decimal digit.
How to change the font size of Text Box Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.
Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
go to Font
choose desired size and type font,you can choose to make this the default.
Do this with each field.
Or if you have a lot of fields:
while one is selected select all of them
then go to fonts in properties
change Font and size and make default. -
How to increase the attachment size of a portal
Hi,
We have a portal developed using JSP.
We have an option for attaching files. Now the maximum limit is only 5 MB. So we thought of using FTP so that we can increase the attachment limit. But we are not able to attach files more than 1 MB.
Could you please help us in resolving this. Any idea how to increase the attachment size limit?
Thanks in advanceHi,
See what Patrick Yee has posted.
how to create own page format in smartforms immmedia
Svetlin -
How to modify the blob size, or how to set the size?
i want to know how to modify the blob size, or how to set the size?
what's the default size of blob?
Thanks in advance.Blob datatype can contain binary data with a maximum size of 4 GB.
when you enter 10kb file, the database will only use 10kb to store the file (depending on block size etc)
if you want to modify the blob size, you may do like this:
SQL> create materialized view t_mv refresh fast on commit
2 as select id, dbms_lob.getlength(x) len from t;
Materialized view created.
SQL> alter table t_mv add constraint t_mv_chk check (len < 100);
Table altered. -
How to see the tablespace size
hi
how to get the tablespace size??
thxHello,
select SUM(bytes)/1024/1024 MB from dba_data_files
where tablespace_name = 'xxxxxx';
works fine.
I am trying to build a function for that:
select SUM(bytes)/1024/1024 MB
from dba_data_files
where tablespace_name=upper('&user')
However, I need to make some enhancements:
1. how to make comments in sql files?Refer to the REM statement in the sqlplus reference manual
2. a lot of outputs are generated:
SQL> @get_size
Enter value for user: tts1
old 3: where tablespace_name=upper('&user')
new 3: where tablespace_name=upper('tts1')
MB
2048
how to avoid that so that only the size is
displayed.
for example:
SQL> @get_size
Enter value for user: tts1
MB
2048
Refer to set verify off in the sqlplus reference manual.
>
3. how to let the function accept a parameter such
as:
SQL> @get_size tts1
Refer to the define command in the sqlplus reference manual.
>
4. how to include a usage (help) to that function
such as:
SQL> @get_size
usage: get_size <tablespace name>
Many thanksRefer to the prompt statement in the sqlplus reference manual.
Sybrand Bakker
Senior Oracle DBA -
How to increase the cahce size?
how to increase the cache size?
i am using safari 4.0.3HI and Welcome to Apple Discussions...
I know of no way to increase the cache size but it's easy to empty it. File/Empty Cache or
Ctrl + Alt + E.
Carolyn -
How to set the heap size of JVM
please let me know that how to set the heap size of JVM
C:\>java -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xrunhprof[:help]|[:<option>=<value>, ...]
perform JVMPI heap, cpu, or monitor profiling
-Xdebug enable remote debugging
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)look at the -Xm? lines
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap sizeThis can be used e.g. like this:java -Xms8M -Xmx32M MyProgwhich runs MyProg in a java VM with the initial heap size of 8 MB and a maximum heap size of 32 MB.
- Marcus
Maybe you are looking for
-
How do I stop SMS event reminders for Calendar events in iOS7?
I just upgraded to iOS7 and my synced Gmail Calendar items have begun to send SMS reminders to my phone (In addition to the regular event reminders from the Calendar app) for every calendar entry! I never enabled a setting for this previously, and I'
-
Installed on W2K8 SP2 + SQL 2 K 8 R2 CTP November + SPS2010 beta. SQL instance by default MSSQLSERVER and WSS_Content default content database. Step by step following installation and use of remote Blob Storage capacity documentation: http://technet.
-
This is my present computer: iMac 3.06GHz Core 2 Duo (2008 model) 4 gigs of 800 mhz ddr2 sdram (this is the max ram for this computer! ) NVIDIA GeForce 8800 GS 512 MB Hard drive: 465 gig (I use mainly external drives for editing) I use this mainly fo
-
Don't laugh, that's how far behind I am. Life happens. I'm running Win7Ultimate using Elements 2 that came with my old but great Epson 4180 scanner. I bought Elements 9 a couple years ago, moved, forgot about it, and refound it today. Question is, is
-
How to have 1 image in the left side and 1 image on the right side on the same line? Example left corner and right corner. Also along the same idea..... How to have a H1 header with an image on the same line?