Convert text in pdf with as3
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
Similar Messages
-
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 -
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. -
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.
-
Converting WordPerfect to PDF with desktop printer tool: Not working
I have been a monthly subscriber to Adobe CreatePDF for many years! I work mainly with Correl WordPerfect, but with the change to the Pack version it is not supported. I downloaded the desktop printer tool; it is installed. However, when I follow instructions and print, I get nothing. Where does the PDF go? What can I do? Please help! I cannot continue to pay monthly if I don't get service.
Thank you very much. I have uninstall adobe desktop printer tool and my wordperfect. Next step is follow your suggestions but I am no computer anything, lol. 1. How do I know if I have a win 7 sp1? I have win 7 that much I know. 2. Where can download the hotfix? 3. With adobe createpdf, I didn't need adobe ps printer setup, I don't have a laser printer at home, I have an hp inkjet printer.
Please help again and soon, :).
Date: Tue, 7 Jan 2014 11:52:08 -0800
From: [email protected]
To: [email protected]
Subject: Converting WordPerfect to PDF with desktop printer tool: Not working
Re: Converting WordPerfect to PDF with desktop printer tool: Not working
created by H.Spector in Adobe PDF Pack (formerly CreatePDF) - View the full discussion
Please do following
(A). If your system is Win 7 SP1 then install a hot fix to correct inetpp.dll version at C:\Windows\System32 folder.After installing the hot fix version will be 6.1.7601.21819 from 6.1.7601.17514.
Note please uninstall CreatePDF Desktop printer then reinstall after applying the hot fix
(B). If you have not installed Adobe Postscript driver yet then please install one as below:
How to Install PS printer:
1. Open Start menu > Devices and Printer ( or from control panel) and select "Add a printer"
2. Select "Add a local printer"
3. Select "Use an existing port: LPT1: (Printer port)
4. Select any company and any PS printer with Adobe PS printer driver(not clone) such as Xerox and Xerox Phaser 6120PS
Adobe PS driver files:
http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5989811-532123/450-202/PagesfromHowToInstall_PS_PrinterDriver_onWin7.jpg
(C) Go to the printer configure port and verify your Adobe ID and password
1. Goto Start> Devices and Printers > Adobe CreatePDF Desktop Printer
2. Click right mouse to open “Printer properties”.
3. Select “Ports” tab
4. Select ”Internet Port: Adobe CreatePDF Desktop printer”
5. Click “Configure Port…” button at the bottom
http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5989811-532115/410-417/IPP_Scr eenshot.png
When printing to PDF you will see below and an email is delivered to your email inbox. The converted PDF file will be stored at https//files.acrobat.com.
http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5989811-532116/395-199/IPP_Scr eenshot_Queue.png
Thank you
Hisami
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5989811#5989811
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5989811#5989811
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5989811#5989811. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe PDF Pack (formerly CreatePDF) at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
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 -
Can not copy text from pdf with unicode font embedded.
Hello,
I have a pdf with unicode font embedded in it. The pdf has no restrictions. When i try to copy some text text fro m pdf and then paste itin word, the text is not the same which i copied from the pdf. it changes.
I have tried multiple softwares which converts pdf to word or pdf to excel. but none can do my job. what should be the problem? Kindly guide me.
Thanks & Regards-
rashmiThanks for your prompt reply.
As i said i have the font installed on my system. for your reference,
following is the link to the pdf file. also the second link is the link to
the fonts used. Kindly help me to sort this issue.
https://www.yousendit.com/download/T2dkcHBEVEh0QTIwYjhUQw
https://www.yousendit.com/download/T2dkcHBFQXBrYUJYd3NUQw -
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,
JayHi 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 -
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.
-
Copying text from pdf with embedded font
I have tried everything to copy and paste text from pdf into word. I think because it has embedded text it comes over as garbled. I have downloaded the font, tried to open it in several other aps, viewed it as html -- to copy and paste ...
anyone have a trick that they can share with me before I poke my eyes out
thank youThanks for your prompt reply.
As i said i have the font installed on my system. for your reference,
following is the link to the pdf file. also the second link is the link to
the fonts used. Kindly help me to sort this issue.
https://www.yousendit.com/download/T2dkcHBEVEh0QTIwYjhUQw
https://www.yousendit.com/download/T2dkcHBFQXBrYUJYd3NUQw -
Convert rtf to pdf with good font and sharp images
I can convert rtf to pdf in Microsoft Word (2004) using the Print function but the resulting document doesn't maintain the same font and the images look a bit hinky as a result.
I tried to convert from rtf to pdf in Acrobat 9 but it sez unsupported file type.
I just want a really clean conversion that keeps the images sharp and the fonts looking good. Am I out of luck?<!--- source:http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=ColdFusion_Documentation&file=00001585.htm --->
<cflock scope="Application" type="exclusive" timeout="120">
<cfif not StructKeyExists(application, "MyWordObj")>
<!--- First try to connect to an existing Word object --->
<cftry>
<cfobject type="com"
action="connect"
class="Word.application"
name="Application.MyWordobj"
context="local">
<cfcatch>
<!--- There is no existing object, create one --->
<cfobject type="com"
action="Create"
class="Word.application"
name="Application.MyWordobj"
context="local">
</cfcatch>
</cftry>
<cfset Application.mywordobj.visible = False>
</cfif>
</cflock>
<!--- Convert a Word document in temp.doc to an HTML file in temp.htm. --->
<!--- Because this example uses a fixed filename, multiple pages might try
to use the file simultaneously. The lock ensures that all actions from
reading the input file through closing the output file are a single "atomic"
operation, and the next page cannot access the file until the current page
completes all processing.
Use a named lock instead of the Application scope lock to reduce lock contention. ---><cflock
name="WordObjLock" type="exclusive" timeout="120">
<cfset docs = application.mywordobj.documents()>
<cfset docs.open("c:\ColdFusion8\wwwroot\RTFtoPDF\temp.rtf")>
<cfset converteddoc = application.mywordobj.activedocument>
<!--- Val(8) works with Word 2000. Use Val(10) for Word 97 --->
<cfset converteddoc.saveas("c:\ColdFusion8\wwwroot\RTFtoPDF\temp.htm",val(8))>
<cfset converteddoc.close()></cflock>
<!--- Read the HTML file ---><cffile
action="read" file="#expandPath('temp.htm')#" variable="fileToConvert">
<!--- Convert from HTML to PDF---><cfdocument
overwrite="yes" filename="#expandPath('temp.pdf')#" format="PDF"><cfoutput>#fileToConvert#</cfoutput></cfdocument>
<p>Conversion from temp.rtf to temp.pdf complete</p> -
Convert PS to PDF with Preview
I've been using Preview forever to open PS files. Recently, when I try to open the PS file, I get a file error following the converting PS to PDF bubble. There is nothing wrong with the PS file (can open with ColorSync or GIMP). Any idea on a fix?
CliffBy a PS file, I assume you mean Photoshop file. I also use Preview to open my PS files.
Try converting the PS file to a PDF in Photoshop.
In PS choose File > Save As... then choose PDF from the settings list.
Remember to mark as helpful or solved. -
Convert jpg to pdf with proper bounding box for LaTeX
Hi,
does anybody know how I can use Acrobat 8 Professional on my Mac to convert a jpg into a pdf that with a proper bounding box for LaTeX?
When I import the jpg and save it as a pdf, then LaTeX cannot determine the correct size, and, therefore, the picture appears way too big in LaTeX's output.
The LaTeX Error message is "Cannot determine size of graphic in myPic.pdf (no BoundingBox)"
On my Mac I don't even know how to check the size of the bounding box.
Thanks for your suggestions!
KurtHi - thanks for all the answers.
I have tried to use Graphics Converter but it has way too many options, and if I just use the default one's, the pdf quality is changed, so black does not appear as black anymore but slightly grey. And since Graphics Converter changed the pdf unexpectedly, I don't want to risk that it changes something else that I might miss now and only realize when the manuscript is in print.
Currently, I cannot check if the correct Bounding Box would be set using Graphics Converter: My LaTeX implementation shows the pdf in the correct size, even without bounding box, but the LaTeX implementation of the journal I am submitting the graphics to does not, and since I already submitted the manuscript, I cannot check anymore. Using GhostView on a PC would help, but on a Mac I don't get GhostScript to do that.
I cannot use jpg's directly, as the journal does not support jpg's.
The figures were prepared using photoshop, so maybe I try exporting them directly from there, but as far as I remember, this did not set the bounding box correctly either. But since I am not sure I need to test it again.
Is there a way to view the bounding box?
I thought that the bounding box just gives the dimensions in pixels, so does the actual size really matter?
Thanks a lot.
Kurt -
I have a form that i need to convert to a pdf with fields
i am working on a form that will be used for registration. I created it in Publisher then saved it as a jpeg. In order to be more efficient with collecting information, i need to save this form as a pdf with fields so it can be filled out online and perhaps saved and emailed back to me. Please help!!
I am not sure Publisher was the best approach as there is no conversion from Publisher directly to the PDF format as there is with Word.
You will Acrobat Standard or Professional to create PDF forms. There is a 30 day free trial of Acrobat Professional and after that period you need to either buy a copy of Professional or subscribe tot he cloud product. You could also uninstall the Professional version and buy or subscribe to the Standard version.
Entire books have been written about creating forms with Acrobat.
Once you acquire Acrobat, I would print the Publisher document to the Adobe PDF printer and then use Acrobat to add the form fields.
You are also going to need to review how various computer systems work with PDF forms, which browsers work well with PDF forms, how the older versions or Acrobat/Reader work with forms, and email, and if any mobile device will be used how the different apps work or do not work with PDF forms. -
Issues converting .pmd to .pdf with Acrobat 9 Pro
I have tried numerous ways to convert a .pmd file to a .pdf using the Acrobat 9 Pro with no luck. I do not have PageMaker on my computer. Any recommendations?
It has been awhile since Adobe "retired" PageMaker.
It is no longer an Adobe supported application; so Acrobat 9 PDFMaker does not have it listed as a supported application/file format.
The migration path was to InDesign.
As with any application that can be sent to a "printer" via File > Print
If PageMaker is installed, its file can be sent to Adobe Printer for processing by Distiller.
But, again, no PDFMaker.
Be well...
Maybe you are looking for
-
I just updated my OS to Lion, I am no longer able to open all my "Word" documents, as the new system does not support this, can I get around this somehow?, or some way to change the documents all to "Pages"? Or, should I reinstall the Leopard OS, cha
-
Logical standby | archive log deleted | how to remove gap ???
hi gurus... i have problem on logical standby by mistake standby log coming to logical standby has been deleted , now how to fill up the gap ??? ON STANDBY SEQUENCE# FIRST_CHANGE# NEXT_CHANGE# APPLIED 228 674847 674872 YES 229 674872 674973 CURRENT 2
-
ICal Server email invitations with external mail server
So I see lots of people have worked out the kinks to get iCal Server to send invites to external email accounts when using the Mail server on the same machine as the iCal Server, but who has it working when the mail server is somewhere else? Any help
-
GPO to push HKCU regkeys to users that do not have permissions to write to the registry?
We run a 2008r2 domain and mostly Win7 clients, but some are still XP. I need to apply some application settings in an admin template(user), and also need to push a regkey to HkeyCurrentUser for those users. I would like to use GPP for the regkey,
-
Saving from Preview to iCloud?
I just cropped an image in the Preview app from Mac OS. In between the Save As PDF functions it allows to Save to iCloud. But how can I find that file in iCloud?