Convert text in PDF to pure black
Hi all,
I have spent hours researching this with little to show for it, so I thought it's time to ask for help.
I am dealing with a situation where I need a batch solution to change the color of all the (vector) text in a PDF document to pure black.
From my research, I understand that:
1) It is not possible to do this in JS.
2) If I simply wanted to change the color of text from color to grayscale, I can use "Convert Colors" under Print Production to change the color space.
3) I can select the "edit text & images" command, select all objects in the page, and change the font color to black. But this method requires repeating the same for every page, and is not practicable for PDFs with many pages.
I have experimented using different conversion profiles (Gray Gamma, Dot Gain), but in all cases, I have been unable to change the color of text to black. It remains at gray, or is changed into a different shade of gray.
My question here is this:
When I select an object and go to the color tab of the Object Properties box, I see "Black & White" as one of the color spaces that I can choose to convert to in the drop down list. See screenshot immediately below:
If I choose "Black & White", and click the "Convert Colors" button, the text gets converted to pure black. But this method only works object by object.
But under the "Convert Colors" in "Print Production", the "Black & White" option which is available earlier is not available. See screenshot immediately below:
Why is that the case and what can I do if I want to batch convert all the text in my PDF doc to the "Black & White" color space so as to change the color of the text to pure black?
Thanks.
Best,
Jay
Hi Jay ,
Which version of Acrobat are you using?
If it is one of the old versions ,try updating it the latest one and see if that helps.
Launch Acrobat>Navigate to Help>Check for updates.
The second image that you have sent ,there is an option as "preserve black" in the same dialog box.Check mark that option and see if it helps.
Let us know how it goes.
Regards
Sukrit Dhingra
Similar Messages
-
How convert a color PDF File to black & white (gray scale...no color)
How convert a color PDF File to black & white (gray scale...no color)??? creative cloud cs6... Acrobat etc
Hi, just wanted to add my 2¢
I've been in publishing over 25 years and live in Acrobat for making my final files. Currently with a newspaper.
This is what we do:
• Tool Panes > Print Production Window
• Select CONVERT COLORS
• Midway down under OUTPUT INTENT, check Convert Colors to Output Intent
• In the associated drop down menu, I choose (because I'm printing on newsprint) DOT GAIN 20% – If you're working on better stock, choose a lower dot gain percentage.
• Click OK – this will convert the file
• Save
Note: this affects the file you're working with. Make sure that you use this method on a COPY if you want to retain the original color version.
I think if you compare my method to the Preflight method, you'll see a tighter contrast and better blacks. I've always felt the Preflight method left continuous tones a little muddy.
Now if there was only a way to add that to ACTIONS...! -
Hallo,
1) what is the best way to convert text to pdf from as3?
2) what is the best way to import pdf in fash?
Thanks.you'll need to use a 3rd party library like alivePDF, AlivePDF - ActionScript 3 Open-Source PDF Library – 100% client side PDF generation which makes you and your server happ… and/or purePDF, purePDF, a complete actionscript PDF library - sephiroth.it - flash world
-
How can I convert text to PDF in the new "Pages" without losing info.
How can I convert text to PDF in the new "Pages" without losing a lot if information?
Select Export To from Pages' File menu, then select PDF from the sub-menu.
-
Jar file to convert text into pdf
java coding or jar file to convert text file into pdf. i dont want exe file...
any converter to convert text into pdf.... to run in a webapplicationThis website is used to convert Word, Text , Excel file into pdf. I think it is useful to you.
http://www.planetpdf.com
Message was edited by:
ggopi -
How to convert text to PDF?
Hi,
I have a text file that I would like to create a pdf for it.
is there any function that can convert text to pdf format?
Thanks,
ItaySee the example code :
DATA: it_otf TYPE STANDARD TABLE OF itcoo,
it_docs TYPE STANDARD TABLE OF docs,
it_lines TYPE STANDARD TABLE OF tline,
st_job_output_info TYPE ssfcrescl,
st_document_output_info TYPE ssfcrespd,
st_job_output_options TYPE ssfcresop,
st_output_options TYPE ssfcompop,
st_control_parameters TYPE ssfctrlop,
v_len_in TYPE so_obj_len,
v_language TYPE sflangu VALUE 'E',
v_e_devtype TYPE rspoptype,
v_bin_filesize TYPE i,
v_name TYPE string,
v_path TYPE string,
v_fullpath TYPE string,
v_filter TYPE string,
v_uact TYPE i,
v_guiobj TYPE REF TO cl_gui_frontend_services,
v_filename TYPE string,
v_fm_name TYPE rs38l_fnam.
CONSTANTS c_formname TYPE tdsfname VALUE 'ZTEST'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = v_language
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = v_e_devtype.
st_output_options-tdprinter = v_e_devtype.
*st_output_options-tdprinter = 'locl'.
st_control_parameters-no_dialog = 'X'.
st_control_parameters-getotf = 'X'.
.................GET SMARTFORM FUNCTION MODULE NAME.................
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
...........................CALL SMARTFORM............................
CALL FUNCTION v_fm_name
EXPORTING
control_parameters = st_control_parameters
output_options = st_output_options
IMPORTING
document_output_info = st_document_output_info
job_output_info = st_job_output_info
job_output_options = st_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
.........................CONVERT TO OTF TO PDF.......................
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = v_bin_filesize
TABLES
otf = st_job_output_info-otfdata
doctab_archive = it_docs
lines = it_lines
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
........................GET THE FILE NAME TO STORE....................
CONCATENATE 'smrt' '.pdf' INTO v_name.
CREATE OBJECT v_guiobj.
CALL METHOD v_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name
path = v_path
fullpath = v_fullpath
user_action = v_uact.
IF v_uact = v_guiobj->action_cancel.
EXIT.
ENDIF.
..................................DOWNLOAD AS FILE....................
MOVE v_fullpath TO v_filename.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_bin_filesize
filename = v_filename
filetype = 'BIN'
TABLES
data_tab = it_lines
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. -
Is it possible to print a color PDF in pure black
I want to have full black and full white on the page, no grays.
Colored lines and text on drawings can make viewing them on the screen much easier, however if the drawing is printed on a monochrome printer, the gray scale is frequently done by halftoning the items. This makes some lines disappear (if they fall between the dots) and at best they lines are fuzzy and the text hard to read.I use full Acrobat Pro at work (which can print in pure black) but the end users of the drawings will be using Adobe Reader.Have you checked your Page Tiling? (View>Show Page Tiling) The border that you see will show you how it prints. But you can save your file as an Illustrator PDF and then open it with Adobe Reader and given that your printer is borderless . . . you can print to the edges. But a bleed is something where your design extends beyond the edge of the finished product and you cut into the bleed, trimming off some of the art and leaving a smaller product than the original paper size.
-
I am creating a document in Publisher & converting to a pdf. Most of my png elements within the document, are then printing black and white from the pdf (everything else is in color)? Don't know what is going on, doesn't seem to happen on all printers, is there a setting I am missing? Help! Thanks
Could be a setting in the PNGs when they are saved.
Have you tried saving them as GIFs and replacing them in the document(s)? -
Convert text in PDF to editable field in Reader
Hi,
Is there a way in Acrobat Pro to convert text in the PDF to an editable field so that someone opening the PDF in Reader would be able to amend the text. Or do you actually have to make the text in Acrobat?
Thanks for any help,
JackieIt can probably be achieved with a script, but if you only need to do it once, I think doing it manually is the best way to go.
-
Bulk convert text to PDF with Acrobat
Hi. When I convert a text file to PDF with Acrobat X Pro the character spacing in the resulting file is incorrect. The columns of numbers which do correctly line up in the text file, do not line up correctly in the PDF file. I adjust the settings for the conversion in the CREATE PDF FROM WEB PAGE box and I choose a fixed-width font. If I use Adobe PDF Converter (the printer driver) the result is perfect. If I open the text file with Microsoft Word and then convert it to PDF with PDFMaker, it is also perfect. I want to use Acrobat so that I can bulk convert my 300 text files to PDF. Can you please help as I have tried everything? Thank you. Paul Pontikis (Deakin University)
Thank you for responding LoriAUC. I have 300 (*.txt) files that I only ever open with Notepad. I don't every open them in a web browser. I want to bulk convert them to PDF. The orientation of the resulting PDFs must be landscape. It appears that the only way to select LANDSCAPE in Acrobat is to adjust the settings in the CREATE PDF FROM WEB PAGE box. It seems that Acrobat uses its HTML Conversion Engine to convert text files to PDF. When I do this and then bulk convert them using Bulk Convert Files to PDF, the orientation is correct, that is, landscape instead of the default portrait setting, however the character spacing is imprecise and the columns of data are wavy.
Message was edited by: paulatdeakin -
Converting a PDF to pure black and white
I'm currently attempting to convert a PDF of any colorspace (RGB, CMYK, Grayscale etc) to black and white.
Currently I'm walking the PDF using Adobe PDFLibrary, separating the contained PDEElements and identifying them (Image, text, etc).
Does anyone have any advice on how to proceed from here? I figure the actual conversion operation will have to be written from scratch, as Adobe doesn't seem to support this. However, I'm having a hard time determining the colors of each object. I suppose I could rasterize everything and convert pixel by pixel, but I'd like to avoid that and preserve vector images and such if at all possible.
Thanks in advance for any help!Yes, I'm aware that there is no monochrome colorspace. However, wouldn't it be possible (likely at a very low level) to fetch and modify the colors of elements manually?
I suspect the initial thing to do is convert images to the DeviceGray colorspace and work from there, so I have a uniform colorspace to work with when performing this operation.
I've noticed that if I pull the ImageData object out of a PDEImage, I get an array of bytes that appear to be pixel by pixel color data. Now, in doing this have I rasterized the image? What would happen to vector images if this array were to be modified? -
How can I convert text to pdf without the pathname showing in new doc?
Hi,
I had this worked out in v.7 but now in v.8 it seems to be different and/or I just plain forgot how to do it.
I want to not see the path name anywhere in the document when I make a new pdf document from a text file. It seems to do it by default.
But there is no way to remove as a header or footer since it doesn't see it as such. So I can't look up how to do it in the help menu because I don't know what that added line is called if not a header.
Please help. I don't want to have to keep going back to my v.7 Acrobat.
Thanks.Go to Create PDF From Web Page. Change the settings to remove headers
and footers and it will (somewhat surprisingly) affect TXT conversion.
Aandi Inston -
Convert Colors profile to threshold to black? [A9]
Is there a reasonable way to create a color profile that can be used with Convert Colors to apply a threshold (180/255) function to convert an RGB PDF into a black-and-white PDF? Acrobat 9 (CS5), OSX 10.6.7.
I have some multipage PDF files I want to "sharpen" (make clearer) before printing, and found that opening a page in Photoshop and applying Image > Adjustment > Threshold to 180 (out of 255) does a nice job. This is a pain for multipage PDFs because I have to extract the pages from Acrobat, apply a batch action in Photoshop, and then (potentially) re-integrate them into a PDF file.
Acrobat can apply ICC profiles to convert an image via Advanced > Print Production > Convert Colors. But how can I generate an ICC profile that does something analagous to the threshold function?
One crummy way is in Photoshop. Edit > Color Settings, which allows you to define a custom CMYK profile. Under Dot gain, you can set transfer function curves for C,M,Y, and K. I tried doing that, with curves at zero up until 70%, at which point I ran them straight up to 100% with a very steep (almost vertical slope).Tried a bunch of GCR/UCR/Black conversion settings. I saved the profile so Acrobat could see it. This gave me weird results:
In Photoshop, it came close to doing what I wanted, but not totally, when I converted the image to that profile. But it wasn't drastically wrong. But when I applied the same profile in acrobat (with Convert Colors), it looked much much worse, with large blocky pixel groups and the document, which was mostly a raster image of text, almost unreadable.
(Sorry for the lack of screenshots/images -- they're at the office, I'll post them tomorrow...)
Any tips? Is there a better way to do what I want and apply a simple transform to a PDF file?
A better tool to create ICC profiles for Acrobat's Convert Colors?
Am I just using the wrong settings in Photoshop?
Thanks!OK, some more info. So, my PDF contains letter-size pages with 300dpi 8bpp images that are DeviceRGB DCT-encoded (JPEG). Here's how Acrobat displays one of the characters:
(All those obvious JPEG artifacts which explain why it prints badly and would benefit from processing). It looks pretty much the same in Photoshop (via Edit Image from Acrobat, or opening the PDF file directly). Thresholding it to 180 in Photoshop does a great job:
For simplicity, I tried to build a Gray profile that did what I wanted. But it looks like Photoshop's gray profiles only let you adjust dot gain and gamma, and neither of those are sufficient to achieve this kind of effect. RGB doesn't let you use curves. So I converted the image to CMYK, and then Edit > Convert to Profile, then choose CMYK and Custom CMYK and define a profile like this:
with these Curves:
And it seems to do the right thing when the image is converted to it in Photoshop; not perfect but much better than the source:
So, back to Acrobat, and apply the profile with Convert Colors:
basically a disaster. and some very faint jpeg artifacts turn into a big blue rectangle.
So what to do? Is there a better way to construct these profiles? Or should I give up and use batch operations? -
How do I convert a color jpg to a pure black and white jpg with no grey/shading?
how do I convert a color jpg to a pure black and white jpg with no grey/shading using Automator?
Hi mns579,
Thanks for your swift reply.
I'm afraid that sequence leads to a burn-out of some of the black text, making it unreadable.
To clarify, what I did was photograph pages from a book. The interior lighting of the room where I photographed these pages leads to a jpg image with slight graying or shading of parts of the page. So when I simply convert it to B/W, I get a washing out of some areas of the page where there is text, and this makes it unreadable.
I know that some software programs have a feature that allows a color jpg to be converted to b/w such that the text is made pure black and any surrounding areas of the text are made pure white (ie, all color is removed from the non-black areas), which makes for an easily readable b/w text page. Am I able to do this with my Mac, and if so, how using the Automator feature?
(I have more than 50 jpgs that I would like to clean up in this manner, hence the ability to do so through Automator is important.)
Thanks for your attention to this. -
How to upload a text in .pdf to convert it?
How to upload a text in .pdf to convert it?
How to upload a text in .pdf to convert it?
Maybe you are looking for
-
Nokia N95 8GB takes ages refreshing even for one t...
Hi All. I have had this REALLY frustrating problem... Every time i add a track to my phone, then i refresh it takes AGES to update the library. Does anyone know how to fix this? Nokia N97 Mini V: 10.0.020 : 14/10/09 RM-555 Old: N95 8GB : V 20.0.016 :
-
Is the Microsoft 5MH-00001 Wired Desktop 400 keyboard and mouse compatible with mac mini?
Hello, is the Microsoft 5MH-00001 Wired Desktop 400 for Business mouse and keyboard compatible with the mac mini computer? I tried using a generic mouse and the lights of the mouse were on, but I could not click or move the mouse around. Then when I
-
Auto-filled fields linked to other selectable fields
I would like to create a set of numeric fields that auto-fills with default (but user-editable) values, with the selection of a radio button. I would like to be able to create a different set of values for different buttons, all pointing to the same
-
Call BAPI in BADI 'MB_DOCUMENT_BADI'
Hi all, How can i call a BAPI in MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE ? I wrote code below but got "GOODSMVT_CODE" is the correct type, its length is incorrect." error. DATA: goodsmvt_header TYPE TABLE OF bapi2017_gm_head_01,
-
DB12 - Overview of REDO logfiles - Not yetbackedup - 300 Maximum
Experts............... In DB12.. Under Redo Log Backups on Overview of redo log files ....it shows maximum ...300..... but actually my "oraarch" directory contains 300+ archives , but it still shows "300" as highest number in DB12... How we can fix a