I am using itextsharp pdfptables in columns. I have a table that is very long and goes across multiple pages. The header, "XYZ", repeats as it should but I want the header to be "XYZ - Continued" on subsequent pages. I have tried looking for an event in the table but no luck!
I am working in VB.net but samples in C# work too.
Any help is appreciated!
I recommend taking a look at PdfPTableEvent.
There's also a document level page event, though it's not as helpful in this case.
I think you'll need a partially blank header, and then have to fill in the variable parts during your PdfPTableEvent callbacks.
Yes, this documents the Java version of iText. However, all the methods are identical, or very nearly so. Your IDE should help you iron out any differences.
Related
I'd like to minimize the number of times I have to type dates and version numbers across release notes pages and such on Confluence.
How can I reuse a text string within the same page as well as across pages on Confluence?
Right now, I have a bit of text (for example, a version number) which is typed out in multiple locations:
Page A
Top of page
Middle of page
End of page
Page B
I'd like to be able to type the value once and have it automatically appear in all places.
There are multiple bits of text I'd like to do this with on one page.
The closest I've found so far is the MultiExcerpt macro, but unfortunately it displays all content with newline wrapping instead of inline and that's a dealbreaker for me.
You may want to look into Comala Metadata, sounds like what you are looking for.
Disclaimer, I work in the company behind that app, in Comalatech.
Regards,
Gorka
Have you tried using Confluence own Include Macro or the Excerpt Macro. The include macro can be inline if you keep it on the same line in the editor.
There is an official extension called Multi Excerpt. It works like Excerpt, but you can use more then one for one page.
I am just wondering is there any plugin to create dynamic content for a page i.e something similar to a data repeaters in .net. To make it simple it should be a section that should contains 5 to 6 fields/property like
heading
heading 2
image
content - rich text editor
info
This must be in repeatable control so that the editor can add any number of these section a page and all these should be displayed in a single page.
Is there a plugin for the above functionality or what is the best way to achieve this.Any help would be greatly appreciated.
Thanks
Aneesh
You can achieve this without any plugins.
Create your repeatable section (containing the relevant fields) as a document type, and then use the multi-node picker in another document type to select one or many of the sections.
So for example, I could have a FAQs page (which uses a document type called "FAQs Page"), and I want to be able to add multiple question and answers to this page. I could set up a document type called "Question". This will contain two fields: Question and Answer.
On the "FAQs Page" document type, I would add a multi-node picker field called "Questions". This way, an author could select multiple "Question" nodes to appear on the FAQs page.
You would obviously need the code to output this, and also you would create a data type that inherited from multi-node picker, so that you could limit the selection to only Question nodes.
There is also the Repeatable Custom Content datatype which works well but does not support all data types. But it does support all the ones you need for your stated purpose (textstring, media picker, richtext area, etc).
You can find it here: http://our.umbraco.org/projects/backoffice-extensions/repeatable-custom-content I've used it a few times and it works really well in certain situations (e.g. where the items will not be shared across different pages of your site).
If you are sharing content components across multiple pages then #Digbyswift's solution is perfect.
I've always Digbyswifts method, but whilst looking for an alternate solution tonight I found this plugin, which is excellent for those situations where creating lots of widget nodes feels like overkill. It's licensed but the free older version is also available.
http://inaboxdesign.dk/blog/widget-builder-for-umbraco/
This is my first post on SO, so please be gentle :). I'm going to go ahead and apologize for how vague this will probably sound and for the lack of code (this is for work, and I am forbidden from posting it). I will try to pseudocode it or explain it as best as I can, but I have no choice in not being able to show code.
The customer wants a report that pulls data from a DB, so I will have no way of knowing how many pages will be in the form. There are essentially 2 sections of the form. My problem is that the headers have different heights.
The first page of the report's header is built like this:
report header
additional info 1
additional info 2
column header
The rest of the first section leaves out the Additonal Info 1 and Additional Info 2 tables and only has the report Header and Column Header, thus not needing as much space as the header on the first page. But the problem is that I don't know how to shrink the header size. The second section's header is even smaller.
What I have tried so far:
Changing the value for the number of rows in my writeSelectedRows() depending on the page.
Setting the height of the header to a smaller size (before calling document.newPage() since I've seen in my days of google searching for this topic that the header height has to be set before calling newPage())
Adjusting the top margin size of the document depending on which section it is on
None of this even worked. I realize this is incredibly vague and there is probably no way anybody could answer this based on what I've written. I guess I am just asking if anybody knows any links to similar problems I could check out. I have spent days googling this topic and have read tons on it, but still have nothing that works. I have read through all of the relevant tutorials on the iText page. Still nothing that suits what the customer is wanting.
I have looked over possibly using ColumnText and PdfReader/PdfStamper(the "second pass" scenario), but I don't think I can use the ColumnText option since the headers have tables of varying cell widths and the like, and the "second pass" option doesn't leave me with a way to know which section of the report I am on (as far as I can tell).
Any advice or help would be GREATLY appreciated!!
Is it possible to get the page number and line number of particular text from doc/rtf/pdf in iPhone sdk?
Can QLPreviewController or UIDocumentInteractionController be of any help?
EDIT:
I am trying to create something like iAnnotate,Sente. Application where in user will be able to select some text and can add comments for selected text.
I have gone through the fastpdfkit api's which seems the only api which can be of some help.
Can you guys guide me in the right direction.
https://github.com/brow/leaves
Go with this link, it will help you for PDF reader and you can see there how I am doing total page and current page.
If you're looking at doing this with PDF, RTF and DOC it might be best to approach it in a different way as they are all very different formats.
Instead - if you consider attaching comments to an area of the page as opposed to a specific text selection then all you need to know about the document is which page you're looking at. A much easier task. Then you get the user to 'drag out' a comments box for an area of that page. Think of them more like sticky-notes.
This way you can add comments to images as well as text and it allows a much more flexible system for support of other file formats in the future.
I realise this isn't I direct answer to the question, but thought it relevant enough to post.
I just started learning HTML and CSS, with no knowledge on other languages such as javascript, Php, and so forth. Websites like Refdesk.com boast fresh content everyday, there has to be someway they are able to have new content everyday other then changing it by hand. Some Google searches came up with nothing but RSS feeds.
How is this done?
Thanks for the helpful answers, it answers half of my question, but does this also mean that the owner would have to manually add the webpage each day for new content, or say add in the content for a few days and have them displayed day after day automatically?
Most dynamic websites derive their page content from a database. Change the content in the database, and the content on the pages changes to follow suit.
Likely they have some form of content management system which allows non-technical users to update the site. In some systems, the content manager itself can get quite advanced. Here's a description of the latest version of the one used at the BBC, CPS, which drives the many BBC websites and more.
They most probably use a database where they store the content and the newest entries are retrieved from this database and displayed. This requires a server side language like PHP, Java, Python.
The HTML is generated dynamically.
The answers about databases combined with a server-side language like PHP are pretty good and very direct, but depending on how new you are to web development they might not be conceptual enough.
The first thing you need to understand is that a database is a collection of tables - each like any you might be familiar with in excel.
For example, one table in your database might be named "daily_links" and it might have two columns, one named "Date", and one named "Link". So every time you want to publish a new link, you just make a new row.
So now you are half way there.
Now what the server-side scripting language is able to do is to go to the database, look at your table "daily_links" and bring back each all the information that it found there.
From there it can do anything with that information like make a new anchor tag in html for each row it found, and give it an href of the data found in the column "Link".
That is rough idea in (very) general terms.
I hope that is easy to understand.